uuggg, I thought I had this solved…
I’ve loaded my external SWF, now I want to animate a MC within that external swf, however, when i try, the animation freezes (or won’t start at all), but the external SWF DOES load.
Here is my loader code
var _externalMovie:MovieClip
var _url1:URLRequest = new URLRequest("intro.swf")
var _swfContainer:Loader = new Loader()
stage.addChild(_swfContainer);
_swfContainer.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finishedLoading);
// This is done after the swf is loaded
function finishedLoading (e:Event)
{
_externalMovie = MovieClip(_swfContainer.content);
}
Then I write a simple function to load a chosen external SWF and control the external SWF’s MC (animate using the Tweener class):
function loadVideo(e:MouseEvent){
_swfContainer.load(_url1)
Tweener.addTween(_externalMovie.myMC, {x:340, alpha:1, time:1, delay:0, transition:"easeInOutExpo"}); //this is the code that is supposed to animate "myMC" within the external SWF
}
Any help would be appreciated
D3