Posted By

visualadvance on 08/04/10


Tagged

actionscript 3 as3


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

thastyle
tspitzr


AS3: Get Class


 / Published in: ActionScript 3
 

returns the class of whatever target you send

  1. import flash.utils.getDefinitionByName;
  2. import flash.utils.getQualifiedClassName;
  3.  
  4. private function getClass (obj:Object):Class
  5. {
  6. return Class (getDefinitionByName(getQualifiedClassName(obj)));
  7. }

Report this snippet  

You need to login to post a comment.