Linking flash to OOP javascript using ExternalInterface? -
I'm looking at a method to call a flash method in JavaScript and get results:
Example:
Flash -
External Interface AddClallback ("getprogress", getprogress) // getprogress to flash javascript public function: zero {ExternalInterface.call ("getprogress", progress); // Send progress from Flash to Javascript}
Javascript -
Object.prototype = {... getprogress: function () {$ ("#movie") GetProgress (); Progress of return; } ...}
Anyone have any idea how to hook it all ???
Do you want JavaScript to flash or flash the value of change flash Part of: and call checkouts in vain. progress
Trying to pass JavaScript? From the words of the question it seems that you want to call the Flash method from javascript and get the return value. But then why are you calling ExternalInterface.call
via javascript method getprogress method and return progress
External Interface AddClallback ("getprogress", getprogress) public function getprogress (): zero {return progress; }
warning (window ["moviename"]. Getprogress ()); // IE warning (document ["moviename"]. Getprogress ()); // firefox
Comments
Post a Comment