Reputation: 43
This is my problem when working with flash - as3: I have the code here and i want to known why it's value is FALSE?
ExternalInterface.call('console.log',"addCallback");
var wasSuccessful:Boolean = ExternalInterface.addCallback("playMusic", jsPlayMusic);
ExternalInterface.call('console.log',wasSuccessful.toString());
This is result in console:
addCallback
false
Thanks you for help!
Upvotes: 0
Views: 285
Reputation: 3385
ExternalInterface.addCallback() does not return a status, it returns void. So you are getting false, which is the default value of boolean data type. check this link for details on ExternalInterface.addCallBack method.
Upvotes: 2