[Flashcoders] [AS 3.0] Instantiating a Class from child SWF
Hey all, I have a problem instantiating a class that's defined in a child swf... It's not recognising the class definitions. eg: a child swf has an MC in the library with a dynamically generated class definition called 'Death_Tile_16x64' then in the parent I'm trying to create that by doing: var mc = new Death_Tile_16x64(); this is the error I'm getting: ReferenceError: Error #1065: Variable Death_Tile_16x64 is not defined. It doesn't work with getDefinitionByName either :( Any ideas peeps? Thanks, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] [AS 3.0] Instantiating a Class from child SWF
Hello :) read this article in french : http://iteratif.free.fr/blog/index.php?2006/09/14/52-bibliotheque-partagee-sous-flash-9-et-flex-2 i think this article can help you :) EKA+ :) 2006/12/2, James Marsden [EMAIL PROTECTED]: Hey all, I have a problem instantiating a class that's defined in a child swf... It's not recognising the class definitions. eg: a child swf has an MC in the library with a dynamically generated class definition called 'Death_Tile_16x64' then in the parent I'm trying to create that by doing: var mc = new Death_Tile_16x64(); this is the error I'm getting: ReferenceError: Error #1065: Variable Death_Tile_16x64 is not defined. It doesn't work with getDefinitionByName either :( Any ideas peeps? Thanks, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] [AS 3.0] Instantiating a Class from child SWF
Hey thanks, I've just found this in the Programming Actionscript 3 livedocs, which has done the trick.. http://livedocs.macromedia.com/labs/as3preview/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0151.html#119371 it's all about ApplicationDomain in 2007... :p eka wrote: Hello :) read this article in french : http://iteratif.free.fr/blog/index.php?2006/09/14/52-bibliotheque-partagee-sous-flash-9-et-flex-2 i think this article can help you :) EKA+ :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com