Re: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Dave Watts
On Thu, Apr 23, 2009 at 10:08, wrote: > Please, remove me from the list. > Thank you. > Yemane Russom Unsubscribe yourself using the link at the bottom of each email message. > __ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://cha

RE: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread geezword
created text-pages... My first attempt was doing it with the scrollrect property. (wich ended up unfortunatly in seeing pixel-lines (of lines of text) sometime when using it to show different pages) The problem isn't figuring out 'if' I need new pages (or how much), but it is

Re: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Sander Schuurman
My first attempt was doing it with the scrollrect property. (wich ended up unfortunatly in seeing pixel-lines (of lines of text) sometime when using it to show different pages) The problem isn't figuring out 'if' I need new pages (or how much), but it is where the last word/character/whatever

Re: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Jer Brand
Guessing you can't target FP 10.. I built a column text component with pagination once upon a time, and the easiest way I found to do it was to create the full text off-screen in one text field that has your required width, then grab one line at a time from the off-screen text field and add it to t

Re: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Glen Pike
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...

Re: [Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Joel Stransky
You can use the scrollV and maxScrollV properties to determine if you have text outside of the field. if(myTextField.scrollV != myTextField.maxScrollV){ //scrollbars or pagination needed } On Thu, Apr 23, 2009 at 8:05 AM, Sander Schuurman wrote: > Hi cool list, > > Got myself a little optimaz

[Flashcoders] Dynamicly created text-pages...

2009-04-23 Thread Sander Schuurman
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