dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How do I make buttons that just make a movie carry on?

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    14
    I am trying to figure out either how to make a movie end, instead of keep going around, and around again in a loop. Or, I need to know how to get a replay button.

    Thanks Please help.

    --LONDONABOY--

  2. #2
    HELP>>>ACTIONSCRIPT DICTIONARY
    Join Date
    Feb 2000
    Location
    In the Present Moment
    Posts
    1,041
    On the last frame of your animation put this as a frame action:

    stop();

    To make a replay button, add this code to a button on the last frame of your animation:

    on(release){
    _root.gotoAndPlay(1);
    //or if frame one has a label use -
    _root.gotoAndPlay("frameOneLabel");
    }

    Good Luck!

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    14

    cODE

    How do I add the code to the button??????

    I have MX by the way :-)

  4. #4
    HELP>>>ACTIONSCRIPT DICTIONARY
    Join Date
    Feb 2000
    Location
    In the Present Moment
    Posts
    1,041
    okay, drag an instance of a button from your library.

    Select that instance and open up the Actions window.

    If this button is inside of the movieclip you want to replay you can add this code:

    on(release){
    gotoAndPlay(1);
    }

    or

    on(release){
    gotoAndPlay("frameName");
    }

    If it is the main timeline that you wish to control, add _root in front of the goto statements.

    Good Luck!

    BTW The help menu in Flash MX has some tutorials that teach you the basics, maybe you want to investigate those.

  5. #5
    Junior Member
    Join Date
    Jun 2002
    Posts
    14

    fanks!

    thank you!
    that helped!

    Londona_Boy

    "On the erge of not asking stupid questions"

  6. #6
    HELP>>>ACTIONSCRIPT DICTIONARY
    Join Date
    Feb 2000
    Location
    In the Present Moment
    Posts
    1,041
    You're welcome bro!

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