PDA

View Full Version : [AS3] Yahoo Astra TabBar width problem


shebimangalath
09-06-2009, 12:15 PM
Hi,

How to find the exact width of Yahoo Astra TabBar Component
The output is always 150

Here is my Example:

import fl.data.DataProvider;
import com.yahoo.astra.fl.controls.TabBar;

var tabData:Array = [ "Tab0", "Tab1", "Tab2" , "Tab3" ];

var tabBar:TabBar = new TabBar();
tabBar.move(10, 10);
tabBar.dataProvider = new DataProvider( tabData );
tabBar.selectedIndex = 0;
this.addChild( tabBar );

trace("width: "+ tabBar.width);

Thanks for your help...