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]> wrote:
>
>    If the lc fails you can navigatetourl to a different page
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *m.arfaj
> *Sent:* Wednesday, October 31, 2007 1:24 PM
> *To:* [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
>
>  
>

Reply via email to