What kind of reflection are you talking about?
I'm talking about creating an component at runtime with a component name that is not avaliable at compile time. For example, to add a
child (e.g., VBox) in ViewStack, but the name of the child is saved in DB, not in the Flex code. It is similar to the Java reflection.
I'm pretty sure getDefinition does a hash on the fully qualified name and
looks for it in a hash table. The believe the hash has to visit every byte
in the string.
You'll feel it on lots of instantiations, but probably not for typical
numbers. There's so much else going on it will probably get lost in the
However, don't call describeType. That's extremely expensive.
What if I'm using a customized VBox (e.g., MyVBox)? I need to use some properties and methods that are not defined in VBox.
Shouldn't matter if it your class or our class.