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

how to add image as radio button label instead of text

Contributor ,
Sep 01, 2013 Sep 01, 2013

In a pure AS3 project, is there a way to add use an image placed in the library/ Flex/AIR SDK compiler path instead of text as a radio button label?

I've tried substituting character may unicode like:

rb1.label = String.fromCharCode("0x2592");

But how this displays is dependent on the device, font character availability. Displays unpredictably.

Would prefer anyway to use an image that I can create in AI.

Any help appreciated.

TOPICS
ActionScript
817
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 , Sep 01, 2013 Sep 01, 2013

Why not just ignore trying to conquer the label and add an image where the label would go normally?

Translate
LEGEND ,
Sep 01, 2013 Sep 01, 2013

Why not just ignore trying to conquer the label and add an image where the label would go normally?

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
Contributor ,
Sep 01, 2013 Sep 01, 2013
LATEST

OK. I tried this, and it works.

(Hopefully, the image will display in the same location, next to the radio button, on different devices.)

Thank you.

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