# Actionscript error

**URL:** https://forum.kirupa.com/t/actionscript-error/299962
**Category:** Uncategorized
**Created:** [November 13, 2009, 1:17pm UTC](https://forum.kirupa.com/t/actionscript-error/299962 "2009-11-13T13:17:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oasfc](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@oasfc](https://forum.kirupa.com/u/oasfc)
#### Post date: [November 13, 2009, 1:17pm UTC](https://forum.kirupa.com/t/actionscript-error/299962/1 "2009-11-13T13:17:12Z")

</div>

im following the cartoon smart tutorial for a page flipping book (if that means anything) and im trying to alter the code i have.

the code i have at the moment is on an action layer and is used for a few of my frames which works perfectly and is simply

previous\_page.gotoAndStop(1);  
current\_page.gotoAndStop(2);

however im meant to alter the code so the first frame has this

page = 2;

previous\_page.gotoAndStop(page-1);  
current\_page.gotoAndStop(page);

and the second frame just has

previous\_page.gotoAndStop(page-1);  
current\_page.gotoAndStop(page);

however this throws up errors for all my code “1120: access of undefined proper page”.

i cant work this out as ive followed the video tutorial perfectly yet it dos’nt work…
