Copy link to clipboard
Copied
Total n00b question, I'm sure. I understand the basics, but calling the classnames has me confused. Any help would be appreciated!
To add class instances dynamically you can use the following, where className is a String representation of the class name...
var ClassRef:Class = Class(getDefinitionByName("className"));
var classInstance:* = new ClassRef();
addChild(classInstance);
Copy link to clipboard
Copied
To add class instances dynamically you can use the following, where className is a String representation of the class name...
var ClassRef:Class = Class(getDefinitionByName("className"));
var classInstance:* = new ClassRef();
addChild(classInstance);
Find more inspiration, events, and resources on the new Adobe Community
Explore Now