What if you’d like to pass an object to Flex
To continue the topic of my previous post I’m just going to add that there’s a native way to pass objects from JavaScript to Flex’s actionscript.
I’m not going to describe how to structure a object in JavaScript and/or Flex. Let’s go directly to the example.
The function in .js file should return something that is object in JavaScript:
.js file
function getObject() { return { foo : 'bar', zoo : 'tar' }; }
Continue reading Passing objects with ExternalInterface from JS to Flex