When assigning the itemrenderer of an object it is better to use a fully qualified name string or use ClassFactory?
Flex - new ClassFactory() vs Fully Qualified Name
1k Views Asked by asawilliams At
2
When assigning the itemrenderer of an object it is better to use a fully qualified name string or use ClassFactory?
itemRenderer
is typed as IFactory, so ideally it should be a ClassFactory. But it seems that the compiler can figure out what you mean if you just use the fully qualified name, and the generated and compiled actionscript will use IFactory no matter what I'm guessing. I use the string just so I don't have to import ClassFactory and IFactory. If I useitemRendererFunction
though, I use ClassFactory.