# Load external as2 swf to main flash file as root and level0

**URL:** <https://forum.kirupa.com/t/load-external-as2-swf-to-main-flash-file-as-root-and-level0/326695>\
**Category:** Uncategorized\
**Created:** [January 5, 2012, 9:00pm UTC](https://forum.kirupa.com/t/load-external-as2-swf-to-main-flash-file-as-root-and-level0/326695 "2012-01-05T21:00:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oc\_o](https://avatars.discourse-cdn.com/v4/letter/o/5f9b8f/32.png) [@oc\_o](https://forum.kirupa.com/u/oc_o)\
**Post date:** [January 5, 2012, 9:00pm UTC](https://forum.kirupa.com/t/load-external-as2-swf-to-main-flash-file-as-root-and-level0/326695/1 "2012-01-05T21:00:15Z")

</div>

hello.  
first of all sorry about my english.  
i have 2 flash files,one is mine (the main container) and one is a external swf.  
i want to load the external swf to my container swf.  
i write this code in my as2 container

— code inside the main timeline flash (mine flash) -----  
\*first of all i add a movie clip with instance name mc1 to the first layer

```auto
mc1._lockroot = true;
mc1.loadMovie("external.swf");
countdown = function(){
trace("ok");
}
countdownIt = setInterval(countdown,1000);

```

* * *

this code work fine in most of the cases but i found many swfs files that dosent work with this code and work with the \*\*following \*\*code instead :

```auto
loadMovieNum("external.swf",0);
countdown = function(){
trace("ok");
}
countdownIt = setInterval(countdown,1000);

```

i really try to use that code - BUT !!! -\> if i use this code the external swf predominant my main swf code and all the rest of my code dosent work (like timer of trace)…

i am really need help here, i want to load movie like the second example and still run the timer trace function…  
thank you guys !!!
