Hi



I have a movieclip called transitions_mc within which I have an empty mc called imageHolder which is animated around the stage.



I want to load a .swf file into imageHolder, and when its loaded run the animation.



So far I have been doing this - it appears to work - the imported swf animates onto the stage. However...



Code:
function backgroundImage(ptl:Number):Void {

//add transition_mc to the stage

newClip = attachMovie("transition_mc","transition_mc"+clicks,1000+clicks, {_x:45, _y:95});

//get url of swf

var imageUrl:String = episode+"/"+RootNode.childNodes[ptl-1].firstChild.firstChild.nodeValue; 

 

var my_mcl:MovieClipLoader = new MovieClipLoader();

var mclListener:Object = new Object();

//onLoadComplete

mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void {

//trace ("loaded");

newClip.gotoAndPlay("on"); 

}

 

my_mcl.addListener(mclListener);

//my_mcl.loadClip(imageUrl,this.transition_mc.imageHolder);

my_mcl.loadClip(imageUrl,newClip.imageHolder);

 

 

for(i in _root){

if(typeof(_root[i])=="movieclip")

{trace(_root[i]);

}

}

}//end newBackgroundImage


When I run the file the output shows this:

Code:
_level0.transition_mc0

_level0.transition_mc0
amongst other things.



I have two questions:





1) Why are there two versions on the of the clip on the stage?



2) Does my imported swf replace the mc called imageHolder - or go inside the mc called imageHolder?



Many thanks



E