Ok, this is really driving me crazy. I have the following code:
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?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);
Thanks!




Reply With Quote