you just load the clip in, wherever you like and then you can access 
them, no need for namespace qualifications or anything like that.

I use this technique to keep my loader, UI and code seperate.

The loader first loads in the UI, then the application code and just 
tells the application where to find the UI (which works for me because i 
use a composition based approach to movieclips, rather than subclassing 
movieclip)

something like:

var app:Application = new Application(UIContainer);

and thats it.

thanks,

Martin

Tim Beynart wrote:
> I've done some googling, but can't find what I need.
> How do I access classes in an imported swf? Do I load them in to a
> movieclip and call them using new MovieClipName.ClassName()?
> Or are they loaded into the root namespace?
> Up until now I have just been loading all of my classes at compile time,
> which can be inefficient and also gives me headaches whith remembering
> which frame the classes are loaded in, etc.
> 
> Sorry if this is a basic question out of the scope of OSFlash, but for
> some reason I can't access the FlashCoders list.
> 
> 
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
> 

-- 
want to know what i think? probably not

http://relivethefuture.com/choronzon

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to