Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-04-2009, 05:11 PM   #1
Registered User
Join Date: Jun 2007
Posts: 27
Default [AS2] ComboBox Tab Issue - goes blank on lost focus

Hello all,

Has anyone ever experienced a comboBox that goes blank every time you tab out of the box? If I change the combo's to myCombo.writable = true then this stops... but I can't have these cbo's writable because then when I reference the myCombo.value, Flash passes the text to my loadVars instead of the index value (which is essential for other system components).

I'm loading up my combo's with arrays, and then I addItem for each array value. I also have a dataGrid that users click and it populates a bunch of fields for them. For the fields that are combo boxes, I use the command "myCombo.selectedIndex = x;" where 'x' is the value from the database that is passed to myCombo when users click the dataGrid. Using the selectedIndex command changes what the comboBox displays for them, but I think this is causing the blanking out issue.

Any thoughts here? Basically I have to update the comboBox each time a user clicks the dataGrid and I can't have the comboBox go blank if the user is tabbing through all the fields. Thanks in advance for any and all help.
parkerjax is offline   Reply With Quote
Old 05-04-2009, 05:29 PM   #2
Registered User
Join Date: Jun 2007
Posts: 27

I realized as I was typing in my question that I can workaround the issue using the .writable = true method by referencing myCombo.selectedIndex instead of myCombo.value... but I really don't want to make those comboBoxes writable because then I have to create validators for everything to make sure that users don't type in something that isn't allowed. Plus, there could be other problems that come down the road. It's just really weird that when it blanks everything out when I tab out of the comboBox. When I click in with the mouse and then click elsewhere, everything is fine... just a tabbing issue.
parkerjax is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one template, many looks? subquark ActionScript 1.0 (and below) 1166 10-29-2013 06:18 PM
[AS2] 3 ComboBox with conditional values pacuia Components 0 04-15-2009 08:38 PM
Firefox focus issue with multiple flash player instances landon6544 ActionScript 2.0 0 02-20-2008 08:03 PM
Tab Focus Control Ananta1001 ActionScript 1.0 (and below) 2 02-17-2003 07:07 AM
Tab Focus Control Ananta1001 Other Flash General Questions 3 02-17-2003 05:04 AM

All times are GMT. The time now is 11:25 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.