# How do I Restart my swf?

**URL:** <https://forum.kirupa.com/t/how-do-i-restart-my-swf/255812>\
**Category:** flash\
**Created:** [March 27, 2008, 9:13am UTC](https://forum.kirupa.com/t/how-do-i-restart-my-swf/255812 "2008-03-27T09:13:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Login418](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/login418/32/2712_2.png) [@Login418](https://forum.kirupa.com/u/Login418)\
**Post date:** [March 27, 2008, 9:13am UTC](https://forum.kirupa.com/t/how-do-i-restart-my-swf/255812/1 "2008-03-27T09:13:33Z")

</div>

I made an animation. When it gets to the end I need a button script that will replay the movie. I tried:

on(release) {  
\_root.gotoAndPlay(1);  
}

But this script only restarts the main time line. I have nested movieclips that don’t get restarted. Is there a simple solution to this?
