Search code examples
actionscript-3replay

AS3.0 Replay the whole movie (*SWF file)


I made a small game in Actionscript 3.0 and flash.

When the player wins the game or is 'game over' the player should have a option to replay the game.

So my question is: Is there a way to replay the whole movie with Actionscript? I know, i could reset the timeline back to 0, and re-instantiate all the classes, movieclips, var's ect... but i was wondering if anyone knows a easier solution.


Solution

  • You can remove the swfObject and add it again. Look here. This is the swfObject reference.