A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Restart Actionscript movie?

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

    Restart Actionscript movie?

    How can I get an Actionscript-only animation to restart itself without refreshing the whole Web page?

    I have an Actionscript-only animation which randomly chooses one of three different slideshows. I want to put a button on the animation which restarts the whole animation so that it randomly picks another slideshow. How can I do this?

    Thanks,
    May

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Kind of hard to tell you without seeing the existing actionscript you have that runs the slide show.

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Posts
    11
    Hi jbum, I guess I'm interested in how to restart any Actionscript-only animation, so the specifics of my slideshow code would be irrelevant.

    Is there an Actionscript command which just restarts the whole animation?

    Thanks,
    May

    P.S. I love your asteroids game!
    Last edited by may_hem1; 10-15-2004 at 04:42 PM.

  4. #4
    Junior Member
    Join Date
    Oct 2004
    Posts
    8
    Try putting this code wherever the slide show ends:

    _root.gotoAndPlay(1);

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