CPE_learningsite
This repository has no backups
This repository's network speed is throttled to 100KB/sec
Upgrade your account to fix these warnings, or use backups.vc for automated backups
4cd176a439ea516368a5d8827cdf8726027259a6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
package models { import flash.external.ExternalInterface; public class ExternalInterfaceUtil { public static function addExternalEventListener( qualifiedEventName:String, callback:Function,callBackAlias:String ):void { // 1. Expose the callback function via the callBackAlias ExternalInterface.addCallback( callBackAlias, callback ); // 2. Build javascript to execute var jsExecuteCallBack:String = "document.getElementsByName('"+ExternalInterface.objectID+"')[0]."+callBackAlias+"()"; var jsBindEvent:String = "function(){"+qualifiedEventName+"= function(){"+jsExecuteCallBack+"};}"; // 3. Execute the composed javascript to perform the binding of the external event to the specified callBack function ExternalInterface.call( jsBindEvent ); } } } |
Commits for CPE_learningsiteCPEFlex/EngagementPod/src/models/ExternalInterfaceUtil.as
Revision | Author | Commited | Message |
---|---|---|---|
4cd176 ... | v.shishlov | Fri 27 Aug, 2021 14:33:17 +0000 | initial commit |