A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: mouse-over re-triggers movie

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    11

    mouse-over re-triggers movie

    Hello,
    i have a pop-out menu and i'm trying to figure out how to keep a movie (within my main movie) from re-starting when someone mouses-over a new button.

    Here's the actual menu - http://www.layaboutband.com

    if you mouse over it, it opens, but if your mouse stays stationary, it starts to close. the reason, as i see it, is that the menu names (music, photos, etc) are the buttons, and the brown background is not.

    basically, i want it to open and stay open as long as the mouse is there, and the whole thing close when you mouse-off of the menu.

    maybe i dont have this setup right, i'm new to it all.

    attached is the FLA, and here's a zipped up copy of the FLA if that helps:
    http://www.layaboutband.com/menu.zip



    thanks a lot for any help
    Attached Files Attached Files

  2. #2
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    On the button, you can use script to prevent it misbehaving.

    Ideally you will name your menu movie's frames simply:
    Frame one is "frm_start" the frame where you want it to stop at is "frm_open", the frame where the closing sequence begins is "frm_close." I havnt opened your .fla but I'll assume that your menu is named "mv_menu"

    On the button, use this code
    code:

    on(rollOver) {
    mv_menu.gotoAndPlay("frm_start");
    }
    on(rollOut,releaseOutside,dragOut) {
    mv_menu.gotoAndPlay("frm_close");
    }



    In your menu movie, ensure that there is a "stop' in "frm_start", and in "frm_open"

    I dont have time now to do it fully, but I hope you'll get the idea...
    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

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