[Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Joel Stransky
This I just don't get. I have a flash site where a particular .swf is present the entire time so I'm loading up it's library with the movieclips and bitmaps I'll need throughout the site. It's document class has a few simple public methods that return an instance of the symbol like this. //in

Re: [Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Juan Pablo Califano
Looks like both classes are treated as different entities, most likely due to application domain sandboxing. If that's the case, the definition of that class in both the parent and child swf don't match and so you get an coercion error. Try passing a LoaderContext object with

Re: [Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Joel Stransky
You are probably correct. This however is a Gaia project so I'm not handling any of the loading. It seems I need to get my api into the app domain somehow. On Fri, Aug 14, 2009 at 10:13 AM, Juan Pablo Califano califa010.flashcod...@gmail.com wrote: Looks like both classes are treated as

Re: [Flashcoders] Type Coercion failed: library symbols and custom classes

2009-08-14 Thread Joel Stransky
Yep that was it! Gaia allows for an application domain to be set in the site.xml's page and asset nodes via a domain attribute. You have to set it in every node involved in the branch when I'd prefer a side-wide setting but it works. It f*cking works! On Fri, Aug 14, 2009 at 10:32 AM, Joel