Return to Snippet

Revision: 24407
at March 1, 2010 14:14 by godstroke


Updated Code
import flash.utils.getDefinitionByName;

var CLASSNAME:Class = Class(getDefinitionByName(String(libraryPath)));
GRAPHIC = new CLASSNAME();

Revision: 24406
at March 1, 2010 12:43 by godstroke


Initial Code
var CLASSNAME:Class = Class(getDefinitionByName(String(libraryPath)));
GRAPHIC = new CLASSNAME();

Initial URL

                                

Initial Description
libraryPath is a string

Initial Title
AS3 string to class name getDefinitionByName

Initial Tags

                                

Initial Language
ActionScript 3