[flexcoders] Choosing Components Dynamically

2008-08-22 Thread mknuttall
Has anyone or does anyone know if it is possible to choose what component to display dynamically? For instance if one is displaying a questionnaire, questions are Text, Yes No, List and Date and are not know what they are or what the order is till runtime.

Re: [flexcoders] Choosing Components Dynamically

2008-08-22 Thread Richard Rodseth
You can certainly build a view dynamically, because any component can be instantiated in ActionScript. Depending how you structure things, the code may become quite a bit more verbose than you are accustomed to. I believe there are some restrictions on creation by name in ActionScript, but if the