Believe it or not: tabbar.dataProvider = tabbar.dataProvider; The whole sample app is below if you want to run it to see the behavior.
Tracy <?xml version="1.0"?> <!-- Simple example to demonstrate the TabBar layout --> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF"> <mx:Script> <![CDATA[ var STATE_ARRAY:Array = [{label:"Alabama", data:"Montgomery"} {label:"Alaska", data:"Juneau"}, {label:"Arkansas", data:"LittleRock"} ]; private function deSelectTabBar(tabbar:mx.containers.TabBar):Void { tabbar.dataProvider = tabbar.dataProvider; } ]]> </mx:Script> <mx:Panel title="Tab Bar Panel" width="400" height="200"> <mx:TabBar id="tabbar1"> <mx:dataProvider>{STATE_ARRAY}</mx:dataProvider> </mx:TabBar> <mx:Button click="deSelectTabBar(tabbar1)" label="De-Select" /> </mx:Panel> </mx:Application> -----Original Message----- From: Gareth Edwards [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 6:09 PM To: [EMAIL PROTECTED] Subject: Re: [flexcoders] TabNavigator. How did you re-assign the dataProvider for the NavBar? I cant seem to get it to work... tabrow1.dataProvider = newdata doesnt seem to work. Gareth. On Thu, 17 Mar 2005 13:13:47 -0500, Tracy Spratt <[EMAIL PROTECTED]> wrote: > > Well, I expected selectedIndex = undefined; or selectedIndex = -1; to > work but they didn't. > > I did discover that if you re-assign the dataProvider for the NavBar, > all the tabs become un-selected. > > Tracy > > -----Original Message----- > From: Gareth Edwards [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 17, 2005 1:07 AM > To: [EMAIL PROTECTED] > Subject: Re: [flexcoders] TabNavigator. > > I have begun trying to get this to work. > > There is a fairly major issue I have come accross.. in that if I > create multipul rows say I have 3.. then I have 3 tabs selected as > default.. one for each row, does anyone know of a way of deselecting a > tab from a tabBar? > > Gareth. > > On Tue, 8 Mar 2005 11:50:26 -0500, Tracy Spratt <[EMAIL PROTECTED]> > wrote: > > > > Not inherently. Most Containers have a default vertical spacing that > > you would need to override with verticalGap="0". > > > > A TabBar in a repeater sounds like a great custom component. If you > > build one, please share it! > > > > Tracy > > > > -----Original Message----- > > From: Gareth Edwards [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 08, 2005 5:50 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [flexcoders] TabNavigator. > > > > Wouldnt that put a space between each tab row? > > > > On Mon, 7 Mar 2005 09:34:32 -0800, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > > > > try using the tabBar and the repeater tag. > > > -Art > > > > > > Quoting Gareth Edwards <[EMAIL PROTECTED]>: > > > > > > > Unfortunately around 30 tabs is as specific as we can get at the > > moment. > > > > > > > > Its quite a large project with some standards that have already > been > > > > put in place for multirow tabs. > > > > > > > > The DHTML versions of the controls required are finished and it > > would > > > > be a shame to have to write custom components to get similar > > > > functionality out of flex. > > > > > > > > Gareth. > > > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > Yahoo! Groups Links > > > > Yahoo! Groups Links > > > > > > > > > > > > Yahoo! Groups Links > > Yahoo! Groups Links > > > > > Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

