I need to import from inside flash an Array from a JS function, and display it in Dynamic Text in Flash, my code is :
AS2:
import flash.external.ExternalInterface;
js_btn.onRelease = function() {
_root.infoBox.text = ExternalInterface.call("getUserInfo()");
}
JS:
function getUserInfo() {
var userinfo = {fullname: 'George One', username: 'goergeo', picturelink: 'http://link.com'};
return userinfo;
}
Once I press the button, I get "undefined" in the text box! Any help is really appreciated.