I have a Flash CS4 AS3 swf (host) that loads a Flash 8 AS2 swf (client) using gSkinner's swfBridge.
This works great and the Host can call functions in the client no problem. However I want to be able to call a function in the client and have that function return an array to the host.
This is the code I thought would work -
Host (AS3) code -
var hostArray:Array = new Array();
hostArray = mySwfBridge.send("getArray");
Client (AS2) code
var theArray = new Array("item1, item2, item3);
function getArray() :Array {
return theArray;
}
any ideas?