Let’s say you are building an application and want to be able to dynamically instantiate new objects in AS 3.0 (Flash CS3)?
Read on for the answer . . .
The syntax for doing this has drastically changed from AS 2.0, however there is still one gotcha that remains the same.
In my case, I’m not only dynamically instantiating class names, but also their reference names.
Here’s how I figured out how to do it:
// Import the getDefinitionByName util → Continue reading “Dynamically Instantiating New Objects in ActionScript 3.0”