noflashlight
10-18-2007, 01:52 PM
I'm new to using the LocalConnection class. I've used it in pretty basic situations before... but I want to know if the following is possible, and maybe get some pseudo code on how to implement it.
In an html page, Lets say I have one instance of "master.swf"...
and I have several instances of "slave.swf"... Using the LocalConnection class is it possible to have the master.swf send out a sort of broadcast message to all the instances of slave.swf?
For example. Lets say all the slaves are buttons, they are all the same swf but they were all given an ID (not unique) via a flashvar. I want the master.swf to send out a message to all the buttons on the page, that says "if your ID is X, disable yourself". And all the slaves with that ID (which could be several) will turn off.
In an html page, Lets say I have one instance of "master.swf"...
and I have several instances of "slave.swf"... Using the LocalConnection class is it possible to have the master.swf send out a sort of broadcast message to all the instances of slave.swf?
For example. Lets say all the slaves are buttons, they are all the same swf but they were all given an ID (not unique) via a flashvar. I want the master.swf to send out a message to all the buttons on the page, that says "if your ID is X, disable yourself". And all the slaves with that ID (which could be several) will turn off.