Skip to main content
saratogacoach
Inspiring
September 1, 2013
Answered

how to add image as radio button label instead of text

  • September 1, 2013
  • 1 reply
  • 860 views

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.

This topic has been closed for replies.
Correct answer Ned Murphy

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

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
September 1, 2013

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

saratogacoach
Inspiring
September 1, 2013

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.