>Works fine if it's one line, but how to make this wrap in a give area?  Is
it possible to adapt the code given for the previous question of how to fit
squares in an area?

Sure, as long as the text is monospaced (it looks like yours is). My
algorithm will work just fine (with a tiny adaptation to make the x- and
y-spacing values different), but you'll have to do a bit more work if you
want word wrap. You might find it easier to composite the text ofscreen
using a monospaced font in a textArea of the appropriate size, then match
them up using textHeight.

Danny

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to