<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Problem getting accurate count of pages in framework</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Verdana">I'm adding a "Page x of y" to a framework, and I'm not getting the correct value for y (the number of pages in the framework).</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">I'm using an Entry Frame to the framework, and within that is a text icon with an id of aboutDPCounter. The framework id is aboutDPFrame. On each page, I include a script icon with the following:</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">aboutDPCounter.setText('Page ' + (aboutDPFrame.currentPage + 1) + ' of ' + aboutDPFrame.pages.length;</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">When I enter the framework, which currently has two pages of content, the page counter reads "Page 1 of 1." When I go to the next page, it reads "Page 2 of 2," and when I back to the first page it reads "Page 1 of 2." If I then advance to page 2, it reads "Page 2 of 2."</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">What's going on? I would expect myFramework.pages.length would be consistent. It appears as though it doesn't count the page until you've actually navigated to it.</FONT></P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Courier New">_____________________________</FONT>
</P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Courier New"> Paul Swanson</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New"> Instructional Designer</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New"> Harland Financial Solutions</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New"> 800.274.7280 Ext. 2462</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New"> Paul.Swanson@harlandfs.com</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Courier New">_____________________________</FONT>
</P>
</BODY>
</HTML>