# Need help w/ script - Don't load the external SWF if it's already loaded

**URL:** https://forum.kirupa.com/t/need-help-w-script-dont-load-the-external-swf-if-its-already-loaded/134822
**Category:** Uncategorized
**Created:** [January 21, 2005, 9:20pm UTC](https://forum.kirupa.com/t/need-help-w-script-dont-load-the-external-swf-if-its-already-loaded/134822 "2005-01-21T21:20:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vaieel](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@vaieel](https://forum.kirupa.com/u/vaieel)
#### Post date: [January 21, 2005, 9:20pm UTC](https://forum.kirupa.com/t/need-help-w-script-dont-load-the-external-swf-if-its-already-loaded/134822/1 "2005-01-21T21:20:03Z")

</div>

I’m pretty sure this is simple, but I can’t seem to figure it out.

Trying to figure out the actionscript so that if an external SWF is currently loaded and I click on it’s button in the navigation it doesn’t load the SWF again.

I tried modifying the code that’s in the \<a href=“[kirupa.com - Transitions Between External SWFs](http://www.kirupa.com/developer/mx2004/transitions2.htm)”\>Transistions Between External SWFs\</a\> but didn’t have any success

Thanks! Below is what’s currently on my button.

> 

on (release) {  
//load Movie Behavior  
if(\_parent.ad\_container == Number(\_parent.ad\_container)){  
loadMovieNum(“images/site/contact\_info.swf”,\_parent.ad\_container);  
} else {  
\_parent.ad\_container.loadMovie(“images/site/contact\_info.swf”);  
}  
//End Behavior

}
