# Help with page numbering in Flash Paper prototype

**URL:** <https://forum.kirupa.com/t/help-with-page-numbering-in-flash-paper-prototype/282925>\
**Category:** flash\
**Created:** [February 27, 2009, 7:42pm UTC](https://forum.kirupa.com/t/help-with-page-numbering-in-flash-paper-prototype/282925 "2009-02-27T19:42:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [February 27, 2009, 7:42pm UTC](https://forum.kirupa.com/t/help-with-page-numbering-in-flash-paper-prototype/282925/1 "2009-02-27T19:42:07Z")

</div>

Not sure how many remember what flash paper was, but it was a program that converted PDFs into a flash application.

So I am building it in AS3 (not the conversion process, but the viewer).

[View it here](http://ronnieswietek.com/hosted/as3_pdf_viewer)

My question has to do with the zoom feature, well I guess the previous/next buttons as well.

The way the previous and next buttons work is they reference an array of Y values of where the next page is. The array looks like this:  
0,800,1600,2400,3200…etc

This works fine, however, when I go to zoom those values are not accurate anymore more.

Whenever you Zoom up I up the scale by += 0.1  
Whenever you Zoom down I down the scale by -= 0.1

In that process I need to update the Y Value array to match the new height of all the combined pages. How could I do that?
