View trace() output in JavaScript console


/ Published in: ActionScript 3
Save to your folder(s)

import ExternalInterface class
use this instead of trace() to view output in JavaScript console


Copy this code and paste it in your HTML
  1. public function log(_t:String):void{
  2. if(ExternalInterface.available){
  3. ExternalInterface.call("console.log", _t );
  4. }
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.