A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Exit Stage Right

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Los Angeles
    Posts
    44

    Exit Stage Right

    How can I script a placed instance of a MOVIE-CLIP to exit stage right when a button for another scene is chosen. I have already planed for the animation for exiting the stage, but I can not figure out how to script so that if any other button is chosen it will not just change scenes but will allow the animation of the MOVIE-CLIP instance to finish out and then proceed to the scene selected.

  2. #2
    a small country village Trefor's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    328
    could use a variable..

    at the end of your anim stick a ine somewhere

    code:

    _root.exitStage = true;



    then on your buttons..

    code:

    on(release){
    if (_root.exitStage == true){
    gotoAndStop.somwhere // the path for your scene
    }
    }


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