all groups > flash actionscript > october 2004 >
You're in the

flash actionscript

group:

Render a graphic in TextArea


Render a graphic in TextArea Jason Huff
10/20/2004 10:54:27 PM
flash actionscript:
Can an image be put into a textarea component?

<img src....>
shows an image with undesirable results. puts in image but on next line and
takes a line of it's own. wondering if there was a better way.

jason

Re: Render a graphic in TextArea derobinson
10/22/2004 9:39:32 PM
Have you tried using the "align" attirbute of the IMG tag? Still not optimal,
but may help. Otherwise, I don;'t think there's a way of placing it absolutely,
and certainly not with text running around it.....same problem as in a regular
HTML page.

Good luck!
/david
Re: Render a graphic in TextArea TimSymons
10/22/2004 11:28:17 PM
Jason,

I have had a little luck with embedding images in a TextArea with Flash. It is
difficult to say whether what you want to do is possible from your post but
here is what usually works for me.

When including images they must be either "left" aligned or "right" aligned. I
have had a lot more luck with the default which is "left" aligned. I also have
to specify the "width" and "height" attributes and the "hspace" and "vscape"
attributes. If I leave any of those attributes out then I don't get consistent
results. Also, I try to limit embedding only a single image with one group of
text and I have never been able to combine two images with one aligned "left"
and the other aligned "right". That always messes up.

Check the Help files fot the list of attributes you have available.

When I use the above information I can have a top-most, left-aligned embedded
image, with text that wraps around the image using the "hspace" and "vspace"
attributes for spacing.

HTH.

Tim
AddThis Social Bookmark Button