A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [MX04] Stop Globe onMouseOver???

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Posts
    152

    [MX04] Stop Globe onMouseOver???

    Hi:

    Can someone tell me how to make the Globe in the attachment "stop" when the mouse goes over the "H" button, and then resume spinning when the mouse goes off the "H" button.

    I've been trying this:

    on (rollOver) {
    my_globe.stop();
    }

    on (rollOut) {
    my_globe.play();
    }

    But no luck.

    Also, is there a way to make a pop-up layer for a description when the mouse goes over the "H"?

    Thanks in advance for the help.

    SP

    PS - I added the .fla as an attachment
    Attached Files Attached Files

  2. #2
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    Hmmm...a few things...I tend to avoid using buttons whenever possible (and it almost always is). You just have much more versatility with movie clips...that being said...put the following script on your button:

    Code:
    on (rollOver) {
    this._parent.stop(); //this is basically telling the clip that is a nested "layer" above your button to stop...
    }
    
    on (rollOut) {
    this._parent.play();
    }
    As far as a pop-up "layer," since you're using a button anyway, you might as well just put the pop-up in the second frame (the over state) of your button...

    Hope that helps!

    Also, to refer to a movie clip, you have to name the "instance" of that clip in order to refer to it. You can't refer to it by its symbol name...the <Instance Name> field is in the properties panel...
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Posts
    152

    Excellent!

    Hey:

    Thanks for the help. I appreciate it.

    Yep, this works just fine. Exactly what I need. Also makes sense what you said about the popup.

    Thanks again,

    SP

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