# Accessing exported symbol in loaded SWF

**URL:** <https://forum.kirupa.com/t/accessing-exported-symbol-in-loaded-swf/271383>\
**Category:** flash\
**Created:** [September 22, 2008, 3:26pm UTC](https://forum.kirupa.com/t/accessing-exported-symbol-in-loaded-swf/271383 "2008-09-22T15:26:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichSad](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@RichSad](https://forum.kirupa.com/u/RichSad)\
**Post date:** [September 22, 2008, 3:26pm UTC](https://forum.kirupa.com/t/accessing-exported-symbol-in-loaded-swf/271383/1 "2008-09-22T15:26:49Z")

</div>

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.
