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
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
Post a Comment