Hi,
Maybe look at the "Text Metrics" somehow for this and determine if
the "height" of a string formatted to your text field settings will be
taller than you need.
- you might want to be careful counting "words", because things like
newline, etc have a bearing on your text height...
Glen
Sander Schuurman wrote:
Hi cool list,
Got myself a little optimazation challenge.
I'm getting HTML text from an XML file. The big text needs to be split
into different pages, depending on the size of the text.
What's the best way to approach this?
I'm no counting words, en add words to a dynamic TextField (with
css-style) en check with every word if it is still within the
boundaries of the page. If it exceeds the height, then we will make
another page and continue with adding the words. For really large
texts this won't be the fastest way I guess.
Any thoughts on this subject?
_______________________________________________
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