<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:states> <mx:State name="controlBarState"> <mx:AddChild relativeTo="{myPanel}" position="lastChild"> <mx:target> <mx:ControlBar> <mx:Button label="Save" /> <mx:Button label="Cancel" /> </mx:ControlBar> </mx:target> </mx:AddChild> </mx:State> </mx:states> <mx:Panel id="myPanel" width="300" height="300" title="My Panel" /> <mx:Button label="Switch to controlBarState" click="currentState = 'controlBarState'" />
</mx:Application> This does not work as expected. Even in design mode it displays expected controlBarState correctly, but runtime it adds simple Box container at the top of the panel's content area. On 8/22/06, Sergey Kovalyov <[EMAIL PROTECTED]> wrote: > Any code example? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

