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

how can I apply htmlText to ComboBox?

New Here ,
May 01, 2014 May 01, 2014

I can affect the list part, but not the top selection area using a custom CellRenderer.lineBreak.jpg

I can access that area with mulitline and wordWrap, but I can't seem to locate the necessary label field or I'm just missing something.

What you see in the image is data loaded in via XML inside a CDATA tag with HTML tags to break the two lines.

Any help would be greatly appreciated.

Thank you.

TOPICS
ActionScript
323
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 ,
May 01, 2014 May 01, 2014

You don't really need to use htmlText. You can just add a "\n" in the line that you want to break. As in:

Line one \n Line two.

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
New Here ,
May 01, 2014 May 01, 2014

You know something, I tried that, I just ended up seeing the /n in the ComboBox.

I will investigate some more and see if I created some other conflict to keep that from working.

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
New Here ,
May 01, 2014 May 01, 2014

Yeah,

I'm still a bit perplexed here. Here is a pic.lineBreak_2.jpg

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 ,
May 01, 2014 May 01, 2014

If the data was internal to Flash or in a text file "\n" will work. From XML you'll need to use this entity "
" without the quotes.

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
New Here ,
May 05, 2014 May 05, 2014
LATEST

Thank you very much for that. Works great now. Still a little dodgy on some the inner workings of the Components, but you really helped me out of a jam.

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