PDA

View Full Version : use class from other swf



tusat
July 21st, 2008, 05:11 AM
Hi all, i have a problem

Swf A load Swf B, B have C,D,E classes
B like a library, A and other swf load B to use C,D,E classes
How to create new class C,D,E in A ?

Thank for reading ^_^ My english is bad

flashdeva
July 21st, 2008, 08:36 AM
Use the ApplicationDomain class in AS3 and this will help you do what you want!

senocular
July 21st, 2008, 08:58 AM
http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#load()
http://livedocs.adobe.com/flex/3/langref/flash/system/LoaderContext.html
http://livedocs.adobe.com/flex/3/langref/flash/system/ApplicationDomain.html

tusat
July 21st, 2008, 11:08 PM
thanks so much, that is what i want :)