Hi, Not sure why the code below doesn't work, i.e. it doesn't create a new Tab.
Many thanks, Alex <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ function addIt() { mytab.dataProvider.addItem({label:"test",data:"test"}); mytab.draw(); } ]]> </mx:Script> <mx:TabBar id="mytab" /> <mx:Button label="click me" click="addIt()"/> </mx:Application>