Changeset 8887 for trunk/src/flash
- Timestamp:
- 06/03/07 13:37:54 (20 months ago)
- Location:
- trunk/src/flash
- Files:
-
- 3 modified
-
flash6/DojoExternalInterface.as (modified) (4 diffs)
-
flash8/DojoExternalInterface.as (modified) (7 diffs)
-
flash8/ExpressInstall.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/flash/flash6/DojoExternalInterface.as
r4563 r8887 14 14 15 15 public static function initialize(){ 16 //getURL("javascript: dojo.debug('FLASH:DojoExternalInterface initialize')");16 //getURL("javascript:console.debug('FLASH:DojoExternalInterface initialize')"); 17 17 // FIXME: Set available variable by testing for capabilities 18 18 DojoExternalInterface.available = true; … … 20 20 // extract the dojo base path 21 21 DojoExternalInterface.dojoPath = DojoExternalInterface.getDojoPath(); 22 //getURL("javascript: dojo.debug('FLASH:dojoPath="+DojoExternalInterface.dojoPath+"')");22 //getURL("javascript:console.debug('FLASH:dojoPath="+DojoExternalInterface.dojoPath+"')"); 23 23 24 24 // Sometimes, on IE, the fscommand infrastructure can take a few hundred … … 111 111 Called by Flash to indicate to JavaScript that we are ready to have 112 112 our Flash functions called. Calling loaded() 113 will fire the dojo .flash.loaded() event, so that JavaScript can know that113 will fire the dojox.flash.loaded() event, so that JavaScript can know that 114 114 Flash has finished loading and adding its callbacks, and can begin to 115 115 interact with the Flash file. 116 116 */ 117 117 public static function loaded(){ 118 //getURL("javascript: dojo.debug('FLASH:loaded')");118 //getURL("javascript:console.debug('FLASH:loaded')"); 119 119 120 120 // one more step: see if fscommands are ready to be executed; if not, … … 172 172 fscommand("addCallback", _callbacks[i]); 173 173 } 174 call("dojo .flash.loaded");174 call("dojox.flash.loaded"); 175 175 } 176 176 -
trunk/src/flash/flash8/DojoExternalInterface.as
r4190 r8887 59 59 60 60 // tell JavaScript about DojoExternalInterface new method so we can create a proxy 61 ExternalInterface.call("dojo .flash.comm._addExternalInterfaceCallback",61 ExternalInterface.call("dojox.flash.comm._addExternalInterfaceCallback", 62 62 methodName); 63 63 … … 88 88 Called by Flash to indicate to JavaScript that we are ready to have 89 89 our Flash functions called. Calling loaded() 90 will fire the dojo .flash.loaded() event, so that JavaScript can know that90 will fire the dojox.flash.loaded() event, so that JavaScript can know that 91 91 Flash has finished loading and adding its callbacks, and can begin to 92 92 interact with the Flash file. 93 93 */ 94 94 public static function loaded(){ 95 DojoExternalInterface.call("dojo .flash.loaded");95 DojoExternalInterface.call("dojox.flash.loaded"); 96 96 } 97 97 … … 108 108 109 109 public static function chunkArgumentData(value, argIndex:Number):Void{ 110 //getURL("javascript: dojo.debug('FLASH: chunkArgumentData, value="+value+", argIndex="+argIndex+"')");110 //getURL("javascript:console.debug('FLASH: chunkArgumentData, value="+value+", argIndex="+argIndex+"')"); 111 111 var currentValue = DojoExternalInterface.argData[argIndex]; 112 112 if(currentValue == null || typeof currentValue == "undefined"){ … … 131 131 DojoExternalInterface.encodeData(DojoExternalInterface.resultData); 132 132 133 //getURL("javascript: dojo.debug('FLASH: encoded result data="+DojoExternalInterface.resultData+"')");133 //getURL("javascript:console.debug('FLASH: encoded result data="+DojoExternalInterface.resultData+"')"); 134 134 } 135 135 … … 153 153 var piece = DojoExternalInterface.resultData.substring(startCut, endCut); 154 154 155 //getURL("javascript: dojo.debug('FLASH: chunking return piece="+piece+"')");155 //getURL("javascript:console.debug('FLASH: chunking return piece="+piece+"')"); 156 156 157 157 return piece; … … 174 174 175 175 private static function encodeData(data){ 176 //getURL("javascript: dojo.debug('inside flash, data before="+data+"')");176 //getURL("javascript:console.debug('inside flash, data before="+data+"')"); 177 177 178 178 // double encode all entity values, or they will be mis-decoded … … 195 195 data = DojoExternalInterface.replaceStr(data, '"', '\"'); 196 196 197 //getURL("javascript: dojo.debug('inside flash, data after="+data+"')");197 //getURL("javascript:console.debug('inside flash, data after="+data+"')"); 198 198 return data; 199 199 } -
trunk/src/flash/flash8/ExpressInstall.as
r3638 r8887 67 67 68 68 public function onInstallStatus(msg):Void{ 69 getURL("javascript:dojo .flash.install._onInstallStatus('"+msg+"')");69 getURL("javascript:dojox.flash.install._onInstallStatus('"+msg+"')"); 70 70 } 71 71 }