dynamically creating objects


does know if can dynamically create object string
name of class?

for example, if have class testobj

instead of hard coding this:

obj = new testobj();

could this:

classname = "testobj";
obj = new [classname ]();

or such construct allow instaniate class on
fly?

thanks


that seems awkward code that. suppose can create symbol in library , have access ‘testobj’ call out onto stage using attachmovie(). seem using switch statement more practicable request.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support