Groups | Blog | Home
all groups > flash (macromedia) > december 2005 >

flash (macromedia) : Image in html textfield not wrapping text properly


[ sw ]
12/21/2005 10:42:33 PM
Greetings,

I have an external .jpg placed inline in an html textfield using an <img> tag
with the alignment attribute set to "right". When the textfield first appears
on the stage, the text does not wrap around the image and instead continues on
behind the image. Once the textfield is clicked/selected or scrolled, then the
text re-wraps itself around the image properly.

To hack around the issue I use the Selection methods to select the textfield
after inserting the new html text string. This works but unfortunately crashes
the player/browser consitantly after replacing the text a few times. Any better
solutions out there?


my code:



textfield_txt.htmlText = "html string with inline image tag...";
Selection.setFocus(textfield_txt);
Selection.setSelection(0,0);
Retroboy_mx
12/14/2006 6:51:50 PM
Hi Flasher!!!

Try using the new TextField.StyleSheet() to control the style of text and images with CSS.

Take a look in MM help

Hope this help ;-D

drevicko
9/12/2007 12:00:00 AM
AddThis Social Bookmark Button