I think I've found a way around it - pass a connection name with a unique number through to the widget on load up (probably via flash vars or url) - that way the application knows which name to send on. At the same time we can send the name of the application connection name + a unique number.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 11 September 2007 17:07 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flash Player Instance Unique ID Unfortunately I don't have that luxury as I need to support multiple versions of my application and multiple mini-applications within each of mine. I think I've got a way around it though, when I load the SWFs into my application I will pass some flash vars in which tell it the name of the current connection name for the application. Cheers, Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg Sent: 11 September 2007 16:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flash Player Instance Unique ID In the past i was using a single LocalConnection, which worked like a registry and has a well known name. Every new client asks this registry for a id, which then can be used to create their own LocalConnection. Cheers, Ralf. On 9/11/07, Mark Ingram <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Hi, is there a unique ID that the flash player has for each instance? I'm trying to use a LocalConnection to receive data, but if I launch two instances of my application it crashes (because the connection name is already in use). I was planning to append the name of my connection string with some random data or the current number of ticks unless anyone has any better ideas? Cheers, Mark -- Ralf Bokelberg <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Flex & Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35