Re: [flexcoders] Dynamically adding components to a panel?

2006-10-04 Thread Robert Was
Flex documentation has lot of examples about dnd, I found everything for similar assumption Robert Was jack_freud wrote: I'm still very new to Flex so what I thought should be hard is easy and what I thought should be easy is hard! I'm trying to find out how, to make an easy exam

RE: [flexcoders] Dynamically adding components to a panel?

2006-10-04 Thread Dustin Mercer
The addChild method of Panel is what you need.  Here is a quick (non tested, on the fly, don’t take literal) example, but It should get you on the right path.             From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jack_freud

Re: [flexcoders] Dynamically adding components to a panel?

2006-10-04 Thread dordea cosmin
Check the manuals , developers guide and building flex components , there is plenty of documentation.However , for your particular case , just add a click listener to the button , and on it do something likevar foo:Button = new Button();container.addChild(foo);for the shape thing ,  for each shap