function setText():Void { theComboBox.textField.text = "Choose"; }
var comboChange:Object = new Object(); comboChange.change = function(comboChanges:Object) { var getClicked:String = comboChanges.target.selectedItem.label;
For an unknown reason, I have been unable to post my reply which has been rejected by the system for more than a week!
Even moderator Brad Jones wasn't able to post using his privileges!!!
That's the reason why I send my reply in an attached text document.
I cannot open the .fla
But I can open the .swf and I see it works!
Could you please copy the code in a text file so I can see it?
Many thanks for your efforts!
Best,
Gerard
Using the code you post, I've been able to rebuild in CS4 the .fla.
Your code is working nice.
But (there's always a "but"!), if you press a character key or the command key, ComboBox text disappear leaving a blank field.
ComboBox is functional anyway but user could be a bit surprised by this bug.
Do you think there will be some workaround to eliminate it?
If yes, the job will be perfect...
Anyway, I thank you very much for your help and wish you a very nice day!
Your bug sounds unusual and hard to emulate. would need to see your files.
I doubt it is the code that is doing it unless some of your code is creating the anomaly.
Good workaround, thank you.
I am looking now for a solution to make the CB completely unresponsive to any input from the Keyboard...
Of course, I'll keep you informed.
The application in which I'm planning to use ComboBoxes "without repeat" contains 36 CB!!!
I'm not fluent enough in AS2 to build something very complex.
But I was thinking of altering or creating a Class from the scratch, say build a "private class" which could fix for any ComboBox I use in this app the following states/properties:
- unresponsive to keyboard
- not repeating item 0 in the dropdown list
- create a "polyvalent" listener...
Do you think this will be possible?