Andrew, If you databind a function to the selectedIndex property of your combobox, then as the data loads into your combo the function can return the correct value. Make sure you pass in as a param of this function the dataprovider of the combo so the function fires as data comes in.
HTH, allen -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: 12 October 2005 15:32 To: [email protected] Subject: [flexcoders] Problem setting combobox selectedIndex I have a tab navigator, with 2 tabs, each with a canvas. Each tab has its own combo box with its own list of locations. When certain values are entered else where on the screen, I want to automatically change the selected item in each combo box. I have this working as I want for the combo box in the 1st tab which is visible, but it does not display the correct value for the combo box on the second tab, which is not visible. How can I get the non-visible combo box to have the correct selected item. My logic seems to fail because initially the 2nd combo box is not visible. Once it has been made visible my logic works regardless of wheter it is currently visible or not. Thanks Andrew -- 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005 ------------------------ 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/

