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?
A:
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
www.Flextras.com
2010-08-09 15:41:27
using html, ( <image align='right'>hello text ) would work but I want to wrap text around HBox.
2010-08-09 16:00:14
I'm sure HTML and Flex cannot be mixed in that way. You should look into the Text Layout Framework to accomplish what you need.
www.Flextras.com
2010-08-09 16:57:31