There is also a bug with local connection.
I've used it a few time, but notices a bug in the Flash player.

the problem is that the connection not always stays up when the connection is made on frame 1, in an almost blank swf.
The problem is on the send connection object side.


i was using it lately in relation popup html and flash.


the work arround is to build the connection, destroy it, build it, destroy it until you got the var.
of course this is not the way to go when you want to communicate a lot between swf, but if you just want to tell flash for example that a file is uploaded from an html "upload" popup en clear the popup, here is the work arround. it will spare you the search as well if the bug occurs.


function ConnectMe() {
outgoing_lc = new LocalConnection();
outgoing_lc.send("lc_UploaderConnect", "resultFileUpload", bsuccess, strFilename, strFeedback);
delete outgoing_lc;
}
connectID = setInterval(ConnectMe, 50);


Fabrice
On 11-mei-04, at 18:49, Thomas Higgins wrote:

Have swf1 tell Director to tell swf2 to do it?

(have a handler in Director to be the intermediary)

Or if you're in Director MX or MX 2004, and you're authoring your SWF files
using Flash MX or MX 2004, then just use a LocalConnection object in each of
your SWF's, give them separate names and send messages back and forth
directly between the two, avoiding Director as an intermediary altogether.


Here's a demo doing exactly this (having SWF's talk to each other using
LocalConnection objects):

http://poppy.macromedia.com/~thiggins/flash_integration/ localconnection_simp
lechat/index.htm


Source code provided at the link above so you can see how it's all done.


Cheers, Tom Higgins Product Manager - Director Team Macromedia

...
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to