Externalinterface.call Using Actionscript "eval" Only Works In Firefox Not Chrome
Chrome doesn't want to let me access javascript from swf file directly in the URL bar (I know that isn't best practice, but that's what I am trying to accomplish): Given: /file.swf
Solution 1:
Try creating a custom function the proxies the 'eval' function. Try this in JS...
functionexec_code($value) {
window.eval( $value );
}
... and this in AS.
varvalue:String = "[JavaScript Code to execute]";
if ( ExternalInterface.available ) ExternalInterface.call( 'exec_code', value );
Post a Comment for "Externalinterface.call Using Actionscript "eval" Only Works In Firefox Not Chrome"