Two suggestions:
1) It's a bit extreme but in the end I think it would work. Use the
BitmapData Class to collect the image data, then use it to add
additional transparent pixels to the left or right making the total
width of the image the same width of your text field. You then must
use something like the PNGEncoder class to save it as a PNG and save
it to a server using AMFPHP. Make sure your .htmlText references this
file directory and file name. Tthe transparent pixels should push the
text below the image.
Here is the link to the PNGEncoder class:
http://www.5etdemi.com/blog/archives/2006/12/as3-png-encoder-faster-better/
2) You could do all that but I would be more inclined to have the text
field and picture be separate and have textfield's .y and .height
properties adjust dynamically to the bitmap data of the dynamic image.
On Sep 26, 2008, at 8:56 AM, Lehr, Theodore M (N-SGIS) wrote:
I have a textarea that I am filling with an image followed by text - I
want the text to appear under the image but I can not figure out how
to
get a hard return in after the image - I could do a bunch of <br/>'s
but
it will be dynamic so there is no telling how big the image will be -
any ideas?
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders