-
Keeping the custom cursor over content
To use a custom cursor, simply used the following piece of code;
Code:
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE,follow);
function follow(E:MouseEvent)
{
cursor_mc.x = mouseX;
cursor_mc.y = mouseY;
}
cursor_mc.buttonMode = true;
However, when I move the cursor over a content, say, a movie-clip, it stays under the movie-clip.
How can I always keep it over content ?
Thank you.
-
.
Hi,
You can use
PHP Code:
setChildIndex(cursor_mc,numChildren - 1);
if you are adding stuff to the stage throughout your movie, then you may need to put the code inside of your follow function.
Otherwise it should be ok elsewhere.
-
Thank you
Originally Posted by fruitbeard
Hi,
You can use
PHP Code:
setChildIndex(cursor_mc,numChildren - 1);
if you are adding stuff to the stage throughout your movie, then you may need to put the code inside of your follow function.
Otherwise it should be ok elsewhere.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|