-
mouse trailer
I am using a movie clip that follows the mouse on the y axis with this script:
onClipEvent (enterFrame) {
trgt_y = _root._ymouse - _y;
_y = _y + (trgt_y/10);
}
I am wondering how to stop the movie clip from moving when the the mouse is over the movie clip.
I want to attach a menu to the movie clip, so that when you mouse over the movie clip, a menu appears, but if the movie clip still moves, you wouldn't be able to clik on any of the links in the menu.
-
Try this...
Code:
onClipEvent(enterFrame){
if(this.hitTest(_root._xmouse, _root._ymouse, true) == false){
//The rest of the code goes here.
}
}
I think that should get it.
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
|