I facing a problem with htmlText field. When I insert image along with text, text continues to wrap at the right side of the image, and not under the image. It might create some visual problem
Here is my code:
myText.htmlText="<p><img src='images/photo.jpg' width='500' height='250' /><br> This text need to display as new line </p>"
If there is solution for this, without adding more <br> tags.
I have not come across a solution for this other than adding sufficient break tags to get the text to drop below the image. You might instead try creating a movieclip that has the image and textfield as separate pieces.
Thanks for the quick reply :-)
This content is dynamically created. So images sizes will be vary and i don't how to specify how many br tags required for particular image.
Also I cannot specify a placeholder for image, because images will be at different places inside the content, some time it may be at top, middle or at bottom.
Is there any work around on this problem? I found one link that solving this issue : http://www.coldfusiondeveloper.nl/correctHtmlImageTextFlow/correctHtmlImageTextFlowTest.ht ml
but its developed under AS3 version.