Skip to main content
Participant
January 30, 2007
Question

How do I get dynamic text to overflow into another text box

  • January 30, 2007
  • 2 replies
  • 634 views
Okay, I really don't know if this is even possible.

What I want to do, is create a (dynamic) text box (I'm thinking at runtime) that is populated with external text (a story) and formatted appropriately, but clearly there is far more text than there is text box.

I then want to move to the next page (say click on a button that says next page) to continue reading the story.

The text box is then vacated (or removed and a new one created) or we move to a new text box (new page) and it is populated with the next section of story.

This continues until the story is finished, regardless of how many pages it takes.

Does anybody know how this can be achieved?

Any assistance is greatly appreciated. Thanks in advance.

Art


This topic has been closed for replies.

2 replies

Inspiring
January 30, 2007
Yes. You should be able to...especially if you know how many lines make up a page. It is hard to explain I suppose but read up on those properties and it should make a bit more sense what I am getting at.
Inspiring
January 30, 2007
Look at the Text Field class in the help. My advice would be to simply create a multiline text field (at runtime). Then use buttons to scroll that text inside the text field using bottomScroll and maxScroll. Let me know if you need further help.
Participant
January 30, 2007
Thanks Sym Tsb,

I'll take a look at that, but I don't want to scroll text. I want the text to display in a 'page by page' format like a book. Can I use those controls to access the text in 'chunks'?

Cheers, Art
Inspiring
January 30, 2007
Maybe this will do, or at least move u further to a solution?
Add this code to a new flash file and test: