# Animation (no looping?) "autoscript"

**URL:** https://forum.kirupa.com/t/animation-no-looping-autoscript/215113
**Category:** flash
**Created:** [February 4, 2007, 2:38pm UTC](https://forum.kirupa.com/t/animation-no-looping-autoscript/215113 "2007-02-04T14:38:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![madmenno](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@madmenno](https://forum.kirupa.com/u/madmenno)
#### Post date: [February 4, 2007, 2:38pm UTC](https://forum.kirupa.com/t/animation-no-looping-autoscript/215113/1 "2007-02-04T14:38:28Z")

</div>

Hi all!  
When i push a button, i want my animation to stop looping when it has played 1 time. Then skip to scene 2 (wich will contain the last image of that animation) then from there pressing a button to go back or play another animation. But that would be easy if my animation just stops looping. I think i have unchecked every loop option, [This is what i have now](http://www.wingseventdesign.nl/project.swf) and this is my code for scene 1:

> 

//stops the playhead at Frame 1  
stop();

//this script takes the user to scene 2 (zoom in on closset) when zoominclosset\_btn is released  
zoom1btn.onRelease = function (){  
gotoAndstop (“Scene 2”, 1);  
unloadMovie (“zoomclosset\_in”);  
};

//function plays zoomclosset\_in when zoom1btn instance is released.  
zoom1btn.onRelease = function(){  
\_root.attachMovie(“zoomclosset\_in”, “zoomclosset\_in”, 1);  
};

Scene 2 is empty so the problem shouls lie here i think. So i just want to play that zoomclosset\_in animation and after that go to a new scene when a button is pressed.

I hope someone can help me out. thnx!
