Hi. I am using the Loader class to load a SWF file. The SWF file contains nothing on its stage but exports 20 symbols (they have their linkage set to unique class names). I need to add only one or two of these exported items to my parent movie clip. For example, supposed I have a main mc called main_mc and a loader. Now I want to add an item from the loaded SWF to main_mc, but not the whole loaded SWF. Assume the linkage for the item I want is called child_01_mc. The following does not work:
loader:Loader = new Loader();
loader.load(new URLRequest(url));
main_mc.addChild(loader.child01_mc);
I get the following error:
Access of possible undefined property child01_mc through a reference with static type flash.display.Loader
Obviously I am missing something! The specific use case here is that I need to add some optional components to my animations that are contained in this external SWF and exported using named symbols.The SWF contains 20 symbols but I need to add only one or two to the parent animation.