actionscript - object introspection


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

this will loop through an object and get all its properties


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.