Posted By

martijnbleyen on 07/01/10


Tagged

Objects trace as3


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

StrawMan
Winkyboy
tspitzr
Leang
mitien
Gamebytes


Tracing Objects in AS3


 / Published in: ActionScript 3
 

neat little function to easily trace objects in as3

  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  

You need to login to post a comment.