# \[AS2\] Split loaded text into pages

**URL:** <https://forum.kirupa.com/t/as2-split-loaded-text-into-pages/283372>\
**Category:** flash\
**Created:** [March 5, 2009, 12:11pm UTC](https://forum.kirupa.com/t/as2-split-loaded-text-into-pages/283372 "2009-03-05T12:11:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![munklemoose](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@munklemoose](https://forum.kirupa.com/u/munklemoose)\
**Post date:** [March 5, 2009, 12:11pm UTC](https://forum.kirupa.com/t/as2-split-loaded-text-into-pages/283372/1 "2009-03-05T12:11:42Z")

</div>

Hi,

I am trying to load long pieces of text from xml into flash. Then somehow splitting the text into blocks of say 50 characters. So if the text I was loading had 175 characters in it, the textField would show the first 50 chars, with a counter “page 1/4”. Using foward and back buttons would load next/previous set of 50 characters.

Hope that made sense

Did a search arround for an example but with no joy. If someone could point me in the right direction that would be great!

Thanks
