|
getClassByBame will return the Class, then
you can use new on it. Make sure you have any class that you’d want to
instantiate linked in by having a typed variable for it though… Matt From: I have a question that's
almost related. On 3/3/06, Whoa.... not only is there no eval(), there's no _target, no
_level0, and no _global! Plus, you should almost always use Sprite instead of
MovieClip. So what are you really trying to do? Are you using Flex or
just pure AS3? Where are you getting a string like
"sprite1.sprite2.sprite3" from? Why do you have to transform it back
into a Sprite reference? Could you have just kept the reference instead of the
string? - Gordon From: [email protected]
[mailto:[email protected]]
On Behalf Of Boon Chew Hi all, Yahoo! Mail SPONSORED
LINKS
YAHOO!
GROUPS LINKS
|
- RE: [flexcoders] eval gone in AS3, how to get reference to mov... Matt Chotin

