A little taste of what your going to find when you open your brand spanking new Flash MX box or .exe(if you use electronic download)
You can now communicate with all the .swf files open on the users computer using the LocalConnection class and connections, this deminishes the use of javascript to communicate between flash movies in different windows, heres a code sample, lick your lips:
And then in the recieving .swf(s):Code:obj = {a:"a",b:1,c:[1,2,3,4]} //set up an object to send to the recieving .swf files lc = new LocalConnection(); lc.send("incoming", "onSendObject", obj);
MOooooohhhhaaaawww!!Code:lc=new LocalConnection() lc.onSendObject=function(theObj){ //set up a function which recieves the data sent from the sending movie trace(theObj.a) trace(theObj.b) for(var i in theObj.c){ trace(theObj.c[i]) } } lc.connect("incoming"); //make a connection to the "incoming" channel
[Edited by FlashGuru on 03-05-2002 at 08:32 PM]




Reply With Quote