Tracing Objects in AS3


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

neat little function to easily trace objects in as3


Copy this code and paste it in your HTML
  1. private function traceObject(o:Object):void{
  2. trace('\n');
  3.  
  4. for(var val:* in o){
  5. trace(' [' + typeof(o[val]) + '] ' + val + ' => ' + o[val]);
  6. }
  7.  
  8. trace('\n');
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.