# Can actionscript 2 be paused?

**URL:** <https://forum.kirupa.com/t/can-actionscript-2-be-paused/321423>\
**Category:** Uncategorized\
**Created:** [April 19, 2011, 3:35pm UTC](https://forum.kirupa.com/t/can-actionscript-2-be-paused/321423 "2011-04-19T15:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jude](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@Jude](https://forum.kirupa.com/u/Jude)\
**Post date:** [April 19, 2011, 3:35pm UTC](https://forum.kirupa.com/t/can-actionscript-2-be-paused/321423/1 "2011-04-19T15:35:36Z")

</div>

Hi,

I am trying to call a function which attaches a movie (turnover) of 50 frames in length. I want the actionscript that attaches the movie (turnover) to pause until turnover is complete - does that make any sense??

See below

\_global.card\_flipped = false;  
attachMovie(“turnover”,“flip”,100);

//I don’t want this next bit to run until the turnover movieclip is complete  
//turnover sets the global variable card\_flipped to true in it’s last frame

if (\_global.card\_flipped == true) {  
flip.removeMovieClip;  
//there are other functions to carry out when turnover has completed

My problem is that I don’t get into this if statement as it has run before the 50 frame turnover movieclip has completed.

Can I pause the actionscript for 2 seconds to allow turnover to run?

I’d appreciate any suggestions, as I’m going round in circles.

Thanks in anticipation,  
Jude
