PDA

View Full Version : private classes in AS3?



prehensile
January 28th, 2009, 03:44 PM
There's probably an easy answer to this question, but I can't figure it out . . .

I'm new to AS3 (and am working in Flash CS3). I have a movie clip in my library, and have assigned a class to it through the Linkage Properties dialogue box. Is there any way I can specify that this is a private class? The reason why I need to do this is that the swf that I create through my Flash file will be embedded in another swf, and I've been having some problems with conflicts.

Any thoughts would be appreciated.

thanks,
prehensile

wvxvw
January 28th, 2009, 04:15 PM
This is not the way to solve them, you need to load your SWF into separate application domain (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html) when calling Loader.load(<url request>, <loader context>). I.e. loader context needs to have another application domain so that classes in loading and loaded SWFs won't mix.