I have flash application, which creates array and calls javascript function.
var jsParams = ["3011","3012","3013","3014","3015"];
ExternalInterface.call("doCall", jsParams);
And this is my javascript function:
function doCall(params) {
console.log(params);
console.log(params[0]);
}
The output in the firebug is:
["3011","3012","3013","3014","3015"]
[
But for the second line i was expecting 3011 and not [. Then i have tried to call same function with same params from firebug and the function outputed:
doCall(["3011","3012","3013","3014","3015"]);
["3011","3012","3013","3014","3015"]
3011
My question is how to pass params from actionscript to javascript as array and not as string value.
Thanks.