Is it possible to pass an ArrayCollection object from flex ExternalInterface.call() as a parameter to javascript function?
Flex sample code:
var obj:Object = new Object();
obj.id = "Id";
obj.name = "SomeName";
ExternalInterface.call("jsFunction",obj);
JavaScript code:
function jsFunction(flexObj){
alert('Id::'+flexObj.id+'Name::'+flexObj.name);
}
I am able to get the id and name values in js as they are String objects.
My question is: can I get the arrayCollection object from Flex to JS in the similar way?
obj.list = arrayCollectionObj;
If I do in this way I am getting null in JavaScript. How to achieve this?
Any help will be appreciated.