i tried the following code.it is working

            protected function
pnl_creationCompleteHandler(event:FlexEvent):void
            {
                var btn:Button = new Button();
                btn.height = 25;
                btn.width = 35;
                btn.label = "X";
                pnl.addElement(btn);
                btn.y= -30;
                btn.x= 50;

            }

        ]]>
    </fx:Script>


    <s:Panel id="pnl"  creationComplete="pnl_creationCompleteHandler(event)"
x="231" y="61"/>

--
Thanks,
Komal R.Harkut




On Fri, Aug 5, 2011 at 4:30 PM, madhavi chinni
<[email protected]>wrote:

> Hi,
>
> I have a <mx:Panel> or <s:Panel> declared in the main mxml file .I
> want to add the items to the titleBar of that panel in the
> actionscript of the main mxml file.
> Is there a possibility to override the createChildren() method of that
> panel in the actionscript of the main mxml file?or Can we add items to
> the panel titleBar using any mxml tags?
>
> Any help is greatly appreciated.
>
> Thanks & Regards,
> Madhavi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to