Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Combobox disable Label

Explorer ,
Aug 26, 2014 Aug 26, 2014

I would like to disable a combobox once the user is selected a item.

on CHANGE event I used enable = false.

it is disabling, graying out, but the text also disappears.

I would like to display the text user selected last, but he can select only once.

Please guide me.

TOPICS
ActionScript
423
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 26, 2014 Aug 26, 2014

I do not see the selected item disappearing when the box is disabled, though it does turn gray as well.  If that is what you see then maybe you could just remove it or make it invisible and relace it with a textfield.

Translate
LEGEND ,
Aug 26, 2014 Aug 26, 2014

I do not see the selected item disappearing when the box is disabled, though it does turn gray as well.  If that is what you see then maybe you could just remove it or make it invisible and relace it with a textfield.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 26, 2014 Aug 26, 2014

Is it possible to change color of a selected item in a combobox.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 26, 2014 Aug 26, 2014

The disable label disappears only if I use the embed font.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 26, 2014 Aug 26, 2014
LATEST

You can change the selection in the combobox using the setStyle method...

cBox.textField.setStyle("textFormat",newFormat);

where cBox is the instance name and newFormat would be a TextFormat that you define.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines