Hey All,
I have a weird issue. I have an array that I’m trying to send to JavaScript. I’m using the following in my AS3 code:
ExternalInterface.call(nameOfJavaScriptFunction, myArray)
In my JavaScript code I have the function:
function nameOfJavaScriptFunction(myArray){
alert(myArray); // I get nothing, function doesn't get called
}
I do a ExternalInterface.available call and it’s true plus this is only happening when I try to pass the Array, if I try to pass a number, there is no problem, I can see the alert and everything. This only happens with an array. It’s probably also nice to mention that in AS3, my array is an array of objects. When i trace out my array it looks like this:
[Object], [Object]
So i don’t know if that has something to do with it. I’ve done this 100 times over with numbers and strings but this is my first attempt with an array, and this is happening. Any ideas?