A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: mouse trailer

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    21

    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.

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Location
    G-Vegas, NC
    Posts
    155

    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.
    FrankenMoro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center