If both the text and the image need to scroll, put both of them in a MC that is itself scrollable and remove the scrolling from the nested text field.

Lehr, Theodore M (N-SGIS) wrote:
1 sounds a little more involved than I want to get... 2 was my first
approach, but I end up with a (vertically speaking) very small scrolling
textfield - and it just does not look good - so my goal was to mimic a
div with an overflow of auto where the whole thing (image and text)
scrolls....

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rogers
Sent: Friday, September 26, 2008 10:27 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Textarea

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-bett
er/

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
_______________________________________________
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

Reply via email to