If you take out the catch and alert, do you get the error thrown?
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Malik Al-Arfaj Sent: Wednesday, October 31, 2007 6:06 PM To: [email protected] Subject: Re: [flexcoders] Prevent users from running multiple instances at the same time. Alex, thanks for replying. May you please explain how can I do that? I tried: try { var myLC:LocalConnection; myLC = new LocalConnection(); myLC.connect("TestLC"); } catch (err:ArgumentError) { Alert.show("Redirect to another page","Failure"); } but it doesn't seem to work.. Regards, Malik On 10/31/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: If the lc fails you can navigatetourl to a different page ________________________________ From: [email protected] <mailto:[email protected]> [mailto: [email protected] <mailto:[email protected]> ] On Behalf Of m.arfaj Sent: Wednesday, October 31, 2007 1:24 PM To: [email protected] <mailto:[email protected]> Subject: [flexcoders] Prevent users from running multiple instances at the same time. Hi, I embedded a flash 8 movie w/ AS2 in my flex application and used a local connection to exchange data. Everything works fine except that if I open the page twice, the Local connection in the second instance won't work -which screws the whole purpose of it-. The question is can I prevent the user from opening multiple instances from the same flash at the same time?! or at least if it is not possible in Flex, is there another way to do it with JavaScript or PHP?! Regards, Malik

