Use a Custom skin for the Panel
On 6/3/10 8:13 AM, "bhaq1972" <mbha...@hotmail.com> wrote: In flex 3 I used do add buttons to MyPanel (extends mx.containers.Panel) titleBar. var button:Button = new Button(); this.titleBar.addChild(button); whats the equivalent to this in Spark? one way i'm thinking of is using a basic layout, and positioning the buttons where I want. Just wanted to get an idea what approach others would take. thanks -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui