|
OSX LOCAL CONNECTION WEIRDNESS clicking the Y! will send out a localConnection method call on the 10 connected SWFs on the page that will decrease the alpha of the Y!. on a Windows PC using Flash 7+ and firefox or IE, all 10 will register fine and react accordingly. however, on a OSX Mac, only 8 swfs will ever register and receive/send commands. in firefox, the first 8 always seem to register and the last 2 will not. in safari, the 2 swfs that dont work seem to be random in placement. is this a limitation of the total LCs one can have on OSX? me = bu7an3 A T yahoo D O T com. |
// get a unique ID from the html
_root.swfID = (_root.swfID != undefined) ? _root.swfID : 0;
// make a new LC and create the method.
var LC = new LocalConnection();
LC.fooTest = function ()
{
_root.btn._alpha = (_root.btn._alpha < 25) ? 100 : _root.btn._alpha - 25;
}
connectResult = LC.connect("swfTest"+_root.swfID);
// display the stage result
_root.debug.text = ("swfTest"+_root.swfID.toString() + " : " + connectResult);
// clicking the Y! sends out the LC send to 10 swfs
btn.onRelease = function ()
{
for (var x=0; x < 10; x++) {
var SC = new LocalConnection();
SC.send("swfTest"+x, "fooTest");
}
}
|