# External loaded swf controller

**URL:** <https://forum.kirupa.com/t/external-loaded-swf-controller/326131>\
**Category:** flash\
**Created:** [November 24, 2011, 2:32pm UTC](https://forum.kirupa.com/t/external-loaded-swf-controller/326131 "2011-11-24T14:32:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitree](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dimitree/32/2530_2.png) [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Post date:** [November 24, 2011, 2:32pm UTC](https://forum.kirupa.com/t/external-loaded-swf-controller/326131/1 "2011-11-24T14:32:55Z")

</div>

I have an external swf that loads in a file using this code:

```auto
var paused:Boolean = false;

play_mc.onRelease = function()
{  
loadMovie("1a.swf", 1);	
	
}

pause_mc.onRelease=function(){
	
if (_root.paused == true);
{
	

_level1.play();
_root.paused = false; 
trace("play");
}else{ 

  _level1.stop();  

   trace("pause");
}
}

```

But the pause button doesn’t seem to function. Any ideas?  
P.S. It has been ages since I last used AS2. But now I have an old project that needs this type of external control player!
