Search code examples
imageapache-flexword-wrap

How to wrap some text around an image?


In flex, I have HBox in which I have loaded an image. I want to wrap text around it. Hence, there would be an image on right and text will be on left. After the image is cleared, text will be displayed 100% of the width.

How can I achieve it?


Solution

  • Although what you describe is easy to do with HTML. I didn't think the htmlText property in Flex supported anything more than simple HTML.

    You'll want to look into the Text Layout Framework for Flex.


    Edit: Despite my initial claim, the htmlText property actually does support the img tag with align property. It is documented here