Thanks. It works. Amy
--- Alex Harui <[EMAIL PROTECTED]> wrote: > The code for the class has to be in a SWF. It can > be in the main SWF or > loaded via a module later. There is a compiler > option (-includes) that > allows you to stuff other classes into a SWF without > explicitly naming > them in your source code. > > > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On > Behalf Of amywongwy > Sent: Wednesday, February 13, 2008 12:11 PM > To: [email protected] > Subject: [flexcoders] How to create a custom > component dynamically by > name? > > > > My current implementation assumes the data comes > from an xml file, > while specifies the class name of the custom > component. > In Flex, the getDefinitionByName(String) method > allows me to have a > class declaration of dynamically create a component. > However, a > limitation in Flex requires me to have a class > declaration of the > dynamic class in the component before I can call > getDefinitionByName(). > > Is there any way that I can create a custom > component dynamically by > name without creating a class declaration? > > > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

