layout - Flex: Tab Navigator tab position -
i need develop tab navigator few tabs on left hand side , 1 tab on right hand side, have experimented "taboffset" property, not seem able help
thanks in advance!
i made custom tabnavigator component.
package { import mx.containers.tabnavigator; import mx.controls.button; import mx.events.flexevent; public class customtabnavigator extends tabnavigator { public function customtabnavigator() { super(); } override protected function createchildren(): void { super.createchildren(); tabbar.addeventlistener(flexevent.creation_complete, addspacer); } public function addspacer(event: flexevent): void { var buttoncount: int = tabbar.getchildren().length; var _width : number = this.width; var button: button = tabbar.getchildat(buttoncount-1) button; _width = _width - button.width; button.x = _width; } } }
Comments
Post a Comment