|
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. <mx:Script> <![CDATA[ Private
function addPanelChild() : void { var
button : Button = new Button(); button.label
= “test”; testPanel.addChild(button); } ]]> </mx:Script> <mx:Button label=”test”
click=”addPanelChild();” /> <mx:Panel id=”testPanel”> </mx:Panel> From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of jack_freud I'm still very new to Flex so what I thought should be
hard is easy and -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Dynamically adding components to ... jack_freud
- Re: [flexcoders] Dynamically adding compo... Robert Was
- Re: [flexcoders] Dynamically adding compo... dordea cosmin
- RE: [flexcoders] Dynamically adding compo... Dustin Mercer
- [flexcoders] Re: Dynamically adding c... jack_freud
- RE: [flexcoders] Re: Dynamically ... Steve Kellogg @ Project SOC
- Re: [flexcoders] Re: Dynamica... Anatole Tartakovsky
- RE: [flexcoders] Re: Dyn... Steve Kellogg @ Project SOC
- Re: [flexcoders] Re:... Anatole Tartakovsky
- RE: [flexcoders]... Steve Kellogg @ Project SOC
- Re: [flexcoders]... Anatole Tartakovsky
- RE: [flexcoders] Re: Dynamica... Gordon Smith

