Posted By

stiobhart on 06/07/09


Tagged

object actionscript oop introspection


Versions (?)

actionscript - object introspection


 / Published in: ActionScript
 

this will loop through an object and get all its properties

  1. //this will loop through an object and get all its properties
  2.  
  3. for (var p in <object name>)
  4. {
  5. trace(p+":"+<object name>[p]+"\n");
  6. }

Report this snippet  

You need to login to post a comment.