On Wed, 9 Mar 2005 08:29:44 -0300, Fernando Lobos
<[EMAIL PROTECTED]> wrote:

> yes, i know but , who can instantiate a class via string from variable?

Actually that's what UIObject does internally. It does attachMovie()
on the class's symbolName. So, yes, it's possible to create an object
from a string identifying the class. Using the class reference seems
to be the preferred way in Flex.

If all you have is strings, you can create a mapping from the strings
to their corresponding class references and look up the mapping every
time you need a reference. Maybe there's a better Flash Way (TM) that
I'm not aware of (some sibling of Object.registerClass() ).

Manish


Reply via email to