Check out the documentation on mx.controls.Label
and flash.text.TextField
(which is what displays the text in a Text
or Label
control in Flex). The TextField
documentation states that
The <img> tag lets you embed external image files (JPEG, GIF, PNG), SWF files, and movie clips inside text fields. Text automatically flows around images you embed in text fields. To use this tag, you must set the text field to be multiline and to wrap text.
Which means that you can display an image in a Text
component in Flex by setting its htmlText
property to some HTML which contains an <img>
tag. You can't use Label
, because it is not multiline.
I've noticed that text fields have trouble with properly measuring their heights if the images displayed in them are left or right aligned with text flowing around them (e.g. align="left"
). You may have to add some extra spacing below to counter that if you plan to use aligned images.