# How to pause an external swf

**URL:** <https://forum.kirupa.com/t/how-to-pause-an-external-swf/214093>\
**Category:** Uncategorized\
**Created:** [January 25, 2007, 2:58pm UTC](https://forum.kirupa.com/t/how-to-pause-an-external-swf/214093 "2007-01-25T14:58:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)\
**Post date:** [January 25, 2007, 2:58pm UTC](https://forum.kirupa.com/t/how-to-pause-an-external-swf/214093/1 "2007-01-25T14:58:08Z")

</div>

Hey all,

I need to pause an external movie and have it play from where it was stopped. I can get all sorts of communication to the external swf from the parent EXCEPT simple playing and stopping. The movie plays when it is brought in, but I cannot get the pause stop/play part to work. Below is code that I’ve come up with, but doesn’t work:  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] pauser:[COLOR=#0000FF]Boolean[/COLOR] = [COLOR=#000000] **false** [/COLOR];  
pause\_btn.[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR]  
[COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]if[/COLOR][COLOR=#000000]([/COLOR]pauser == [COLOR=#000000] **true** [/COLOR][COLOR=#000000])[/COLOR]  
[COLOR=#000000]{[/COLOR]  
empty\_mc.[COLOR=#0000FF]play[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];  
pauser = [COLOR=#000000] **false** [/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]else[/COLOR]  
[COLOR=#000000]{[/COLOR]  
empty\_mc.[COLOR=#0000FF]stop[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];  
pauser = [COLOR=#000000] **true** [/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}

[/COLOR]  
[/LEFT]  
[/FONT]

[COLOR=#000000]NOTE: The traces do work.[/COLOR]

Thanks in advance.
