# Give Instance to Externally Loaded .SWF

**URL:** <https://forum.kirupa.com/t/give-instance-to-externally-loaded-swf/165814>\
**Category:** flash\
**Created:** [October 14, 2005, 4:07am UTC](https://forum.kirupa.com/t/give-instance-to-externally-loaded-swf/165814 "2005-10-14T04:07:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joepolk](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@joepolk](https://forum.kirupa.com/u/joepolk)\
**Post date:** [October 14, 2005, 4:07am UTC](https://forum.kirupa.com/t/give-instance-to-externally-loaded-swf/165814/1 "2005-10-14T04:07:09Z")

</div>

I’m creating a site in which my menu items are .swf’s loaded externally  
using loadMovieNum.

Is there anyway I can give an externally loaded .swf an instance name  
once it is loaded? I need to do this because when it loads…it shows up but I cant apply the function

???.onRelease = function() {  
if (nextMovie != “print.swf”) {  
nextMovie = “print.swf”;  
\_level2.gotoAndPlay(“outro”);  
}  
};

??? would normally be the instance

I tried this since it was loaded on level 3:

\_level3.onRelease = function() {  
if (nextMovie != “print.swf”) {  
nextMovie = “print.swf”;  
\_level2.gotoAndPlay(“outro”);  
}  
};

Any help would be greatly appreciated and I will submit the  
finished site to kirupa. Thanks.

-----joe
