i got another idea. select another index before selecting the index you want eg tabbar.selectedIndex = 1; tabbar.selectedIndex = 0;
this could be a bug (but i'm no expert!!). i did a little test with 2 butttons (one adding to a tabbar using addItem() and the other just setting the tabbar.selectedIndex). after clicking both a buttons a couple of times, i wasn't getting focus..but selectedIndex was correctly set) regards bod(bhaq1972) --- In flexcoders@yahoogroups.com, "Steve Cox" <[EMAIL PROTECTED]> wrote: > > Hey, > > Tried that, the Tab doesn't get selected still unfortunately. > > Crazy thing is, using an alert, I can output what the selectedIndex is > of the Tab, and it's outputting the right index! But none of the buttons > are selected! > > So the selectedIndex is being set, I can view what it's set to, it just > won't select a button. > > Ah! > > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of bhaq1972 > Sent: 26 October 2005 10:23 > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Stupid Question, but driving me mad - TabBars > > stupid answer(maybe) - why dont you set the selectedIndex in the > resultHandler of your webservice call (the one which gets the > dataprovider for your tabbar) > > > --- In flexcoders@yahoogroups.com, "Steve Cox" <[EMAIL PROTECTED]> wrote: > > > > Guys + Girls, > > > > I've a tabbar on 3 separate forms inside a Tab Nav. > > > > Now the dataprovider for these is populated from a webservice, the > issue > > I'm having is setting the selectedIndex on the tabbars initially. > Once > > the tabbar is created, the selectedindex works perfect. > > > > Setting the selectedindex in a creationcomplete event doesn't > work, is > > there an event which is fired to notify when a tabbar has built up > it's > > buttons? I've tried childrenCreated but I suspect that's for when > it's > > attached to a viewstate etc. > > > > Stupid problem I know, but it's always the little ones that cause > the > > most problems! > > > > > > Cheers, > > > > Steve > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > _____ > > YAHOO! GROUPS LINKS > > * Visit your group "flexcoders > <http://groups.yahoo.com/group/flexcoders> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! > <http://docs.yahoo.com/info/terms/> Terms of Service. > > _____ > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/