Jump to content
Search Community

Replay SWF

MrHalodri test
Moderator Tag

Recommended Posts

It depends on how your swf is built. If, for example, your swf only has 1 frame (many swfs are built this way) and everything in it is ActionScript-driven, gotoAndPlay(1) won't have any effect. To truly restart it from its initial state, it is best to reload it completely which you can do like this:

mySWFLoader.load(true);

 

Notice the "true" parameter - that tells it to flush the old content and force a reload. You could unload() and then load() if you prefer, but load(true) is simpler :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...