Posted By

godstroke on 03/01/10


Tagged

as3stringclassgetDefinitionByName


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

adrianparr
tspitzr


AS3 string to class name getDefinitionByName


 / Published in: ActionScript 3
 

libraryPath is a string

  1. import flash.utils.getDefinitionByName;
  2.  
  3. var CLASSNAME:Class = Class(getDefinitionByName(String(libraryPath)));
  4. GRAPHIC = new CLASSNAME();

Report this snippet  

You need to login to post a comment.