/ Published in: ActionScript 3
import ExternalInterface class
use this instead of trace() to view output in JavaScript console
use this instead of trace() to view output in JavaScript console
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function log(_t:String):void{ if(ExternalInterface.available){ ExternalInterface.call("console.log", _t ); } }