Only one server can be active (connected) with a particular connection
identifier. If you try to connect another LocalConnection server with
an already existing identifier (even in another movie), connect() will
fail and return false.

var lc1: LocalConnection = new LocalConnection();
trace(lc1.connect("myconnection")); // true

var lc2: LocalConnection = new LocalConnection();
trace(lc2.connect("myconnection")); // false

Movies originated from different domains however can use the same
identifier, since the real connection id is not the one passed to
connect(), but the domain name + ":" + the connect()'s parameter
(e.g.: www.domain.com:myconnection), so it will not cause troubles.
Connection IDs having an underscore at the beginning will not be
prefixed with the domain name, so they can be used for inter-domain
communication.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:    David Cohn <[EMAIL PROTECTED]>
To:      [email protected] <[email protected]>
Date:    Wednesday, July 18, 2007, 8:53:06 PM
Subject: [Flashcoders] AS2: LocalConnection as broadcaster?
--====----====----====----====----====----====----====----====----====----===--

It looks like when you .send using LocalConnection, the first  
listener gobbles up the message, so that if there are two SWF files  
which have connected, only one will receive the message.

Do I understand this correctly?  This seems like an artificial  
limitation that makes no sense to me... are things different in AS3?

I'd guess the workaround would be to set up a relaying system that  
would keep the message alive-- anyone have another workaround?

Thanks,
--Dave

_______________________________________________
[email protected]
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_______________________________________________
[email protected]
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

Reply via email to