Hey all,
I'm looking to call a flash method from a method in javascript and recieve a result:
Example:
Flash -
ExternalInterface.addCallback("getProgress", getProgress) // Javascript to flash
public function getProgress():void {
ExternalInterface.call("getProgress", progress); // Send progress back to javascript from flash
}
Javascript -
Object.prototype = {
...
getProgress : function() {
$("#movie").getProgress();
return progress;
}
...
}
Anyone have any idea how to hook all this up???