How to control a mc within a SWF loaded with loadclip?
Ok, this is really driving me crazy. I have the following code:
Code:
_root.TemplateListener = new Object();
_root.TemplateListener.onLoadComplete = function(target_mc:MovieClip):Void
{
trace (_root.mcBalloonBase.mcTemplate); // undefined
}
_root.createEmptyMovieClip("mcBalloonBase",55000);
_root.TemplateLoader = new MovieClipLoader();
_root.TemplateLoader.addListener(_root.TemplateListener);
_root.TemplateLoader.loadClip("bt_latex10.swf",_root.mcBalloonBase);
The loaded SWF 'bt_latex10.swf' have an instance named 'mcTemplate' in its stage. Since it is being loaded into a new empty movieclip called 'mcBalloonBase' that is at the stage of main movie, why it is returning undefined? How can I access the 'mcTemplate' after it be loaded? Or it is not possible?
Thanks!