I am in need of some advice to see if there is a better way
to handle my current situation. As it stands, I have a simple
textarea which grabs data from a php query into a mysql database.
This data is in the form of text and it contains a variety of
things from simple text to url's with tags and img's with tags (as
in <a href... <img src=... etc). It all loads fine and
displays correctly, the problem is if there is an embedded picture
between text, the text area attempts to cram the text along the
right side of the picture. I alleviate this issue by inserting
manual line breaks ie: <br/><br/> until I see that
there is enough space and the text starts once again under the
My question is, is there a better way to handle this? Should
I be using something else to display the data, etc? I hope this
makes sense, thanks in advance!
Perhaps it would be best to put the put the data into a
variable, strip out the images from the text, then load each into a
separate movieclip. You'd have to parse it by looking for the image
tags, etc, but it would be easier to control the layout.
Image support in textfields is full of problems currently,
the wrapping behavior being a major one, please complain loudly
(yeesh, I think that's the third time I'm referred someone to
the wish form today!)
BSpero's suggestion in many cases is the best way to go, when
possible. You seperate your image content from your text content
and load separately. Sometimes that's hard to do because you don't
know what the content will be like, though.