# Loaded SWF not seeing its own Library

**URL:** https://forum.kirupa.com/t/loaded-swf-not-seeing-its-own-library/276042
**Category:** Uncategorized
**Created:** [November 21, 2008, 5:09pm UTC](https://forum.kirupa.com/t/loaded-swf-not-seeing-its-own-library/276042 "2008-11-21T17:09:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JTF2](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JTF2](https://forum.kirupa.com/u/JTF2)
#### Post date: [November 21, 2008, 5:09pm UTC](https://forum.kirupa.com/t/loaded-swf-not-seeing-its-own-library/276042/1 "2008-11-21T17:09:02Z")

</div>

Hi all

I have a SWF (working fine on its own) that contains its code in class files and also a ComboBox and CheckBox component plus a pretty meaty exported font symbol. I’m trying to preload this SWF into another SWF because of the file size (120 K)

Im using a Loader to load in the SWF but when I compile the SWF containing the loader I get errors saying that it can’t find the components in the class thats using them in the SWF im trying to load:

1046: Type was not found or was not a compile-time constant: ComboBox.  
1046: Type was not found or was not a compile-time constant: CheckBox.  
1180: Call to a possibly undefined method ComboBox.  
1180: Call to a possibly undefined method CheckBox.  
1172: Definition fl.controls:ComboBox could not be found.  
1172: Definition fl.controls:CheckBox could not be found.

so I wonder why a SWF cant see its own library symbols once it gets loaded into another swf, because the application was working fine on its own! Ive tried LoaderContext but I dont really understand it. Any help would be appriciated!
