I have an Object2VR instance inside a CS4 AS3 project. The Object2VR .swf was published in Flash 9 format. The problem is that whenever I use a custom cursor, it appears behind the Object2VR instance, that is it apears normally across the movie until it hits the Object2VR, where the cursor disappears behind. A custom cursor is critical to my application because users must select a medical tool from a palette and then click of various points within the Object2VR with that tool to proceed through an exercise. The custom cursor is a movie object on the topmost layer with the instance name "myCursor_mc" and is instantiated thusly:
Code: Select all
stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor);
stage.addEventListener(Event.MOUSE_LEAVE, hideCursor);
Mouse.hide();
function redrawCursor (event:MouseEvent):void {
myCursor_mc.visible = true;
myCursor_mc.x = event.stageX;
myCursor_mc.y = event.stageY;
}
function hideCursor (event:Event):void {
myCursor_mc.visible = false;
}
How can I get the cursor to display above the Object2VR?