Re: [Flashcoders] AS3 singleton not working across multiple loaded swf
I've never had that problem. To avoid conflicts between classes of loaded swf's, I usually set the loader context to the current domain of the loading SWF, maybe it helps in your case too. On Fri, Feb 15, 2008 at 2:22 AM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: The only way I have been able to use a singleton across loaded swfs in AS3 is if it was first referenced in the main swf. Any other singleton I use that are not referenced in the main swf work only within the swf they are contained into. Is this a normal behavior in AS3 ? Does it have anything to do with ApplicationDomain? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 singleton not working across multiple loaded swf
Thanks, I wasn't using that parameter for my loader. I'll try it. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't Kruis Sent: Friday, February 15, 2008 4:04 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 singleton not working across multiple loaded swf I've never had that problem. To avoid conflicts between classes of loaded swf's, I usually set the loader context to the current domain of the loading SWF, maybe it helps in your case too. On Fri, Feb 15, 2008 at 2:22 AM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: The only way I have been able to use a singleton across loaded swfs in AS3 is if it was first referenced in the main swf. Any other singleton I use that are not referenced in the main swf work only within the swf they are contained into. Is this a normal behavior in AS3 ? Does it have anything to do with ApplicationDomain? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 singleton not working across multiple loaded swf
The only way I have been able to use a singleton across loaded swfs in AS3 is if it was first referenced in the main swf. Any other singleton I use that are not referenced in the main swf work only within the swf they are contained into. Is this a normal behavior in AS3 ? Does it have anything to do with ApplicationDomain? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders