<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Problem getting accurate count of pages in framework</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So use onInit when the file initialises and onPageOpen
everywhere else?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You could address the raw file data fw.XMLElement.childNodes.length,
but I&#8217;d try and avoid that if possible. I don&#8217;t think onPageOpen fires on the
first page.. I&#8217;ll check.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Paul Swanson<br>
<b>Sent:</b> Tuesday, October 14, 2008 5:05 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problem getting accurate count of pages in
framework<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>Thanks Julian </span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>This getting me closer, but I
still have one issue: the onPageOpen event doesn't seem to fire on the first
page of the framework, although it works correctly on subsequent pages, or when
navigating back to the first page. I'm using the standard framework controls,
rather than having&nbsp;navigation buttons part of the same interaction as the
onInit and onOpenPage events, so the flow goes right into the first page of the
framework. And if I add a script icon with the setText() method, it still
miscounts the number of pages. Any ideas?</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>I like having the onOpenPage and
onClosePage&nbsp;methods. I'm sure I'll be making good use of those!</span><o:p></o:p></p>

<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><span
lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> Tuesday, October 14, 2008 1:36 AM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problem getting accurate count of pages in
framework</span><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>Try this:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><a
href="http://www.nottingham.ac.uk/~cczjrt/pswanson.rlo">http://www.nottingham.ac.uk/~cczjrt/pswanson.rlo</a><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:72.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk]
<b>On Behalf Of </b>Paul Swanson<br>
<b>Sent:</b> Monday, October 13, 2008 10:08 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problem getting accurate count of pages in
framework<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>Here is what I have:</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>A page off the Interface page
with an id of 'aboutDP' which contains a framework with an id of aboutDPFrame.
The aboutDPFrame has an Entry Frame, with an onInit event interaction
(eventName = onInit, icon = rootIcon, erase = 0, exit = 1). To this event is
attached a script icon with 'aboutDPpageCount = aboutDPFrame.pages.length;'.
The entry frame also includes a script icon with an id of 'aboutDPCounter'
positioned where I want the page numbers to appear.</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>The framework has a number of
pages, each with a script icon (I'll change to the onPageOpen event once I've
got the page count working) with: aboutDPCounter.setText('Page ' +
(aboutDPFrame.currentPage + 1) + ' of ' + aboutDPCount);</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>What prints is 'Page 1 of
undefined', 'Page 2 of undefined', etc. So I still must not have the event set
up correctly...</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>P</span><o:p></o:p></p>

<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><span
lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:72.0pt'><b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> Monday, October 13, 2008 1:08 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problem getting accurate count of pages in
framework</span><span lang=EN-US><o:p></o:p></span></p>

<div id=idOWAReplyText82891>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>rootIcon fires onInit; all
frameworks fire onPageOpen,</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>HTH,</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>J</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>

<hr size=2 width="100%" align=center>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:72.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk on behalf of Paul Swanson<br>
<b>Sent:</b> Mon 13/10/2008 18:08<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problem getting accurate count of pages in
framework</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>I still have not got this to
work. What icon id should be used for the icon property of the Event
Interaction? I've tried the icon id of the framework, the icon id of the page
holding the framework, rootIcon, and the icon id of the first child page of the
framework -- in the first three cases I get 'undefined' as the value of
aboutDPFrame.pages.length, and in the last case I get 0 (which doesn't surprise
me). And should the onPageOpen be within the onInit event, or should that be a
separate event?</span><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:blue'>Paul</span><o:p></o:p></p>

<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><span
lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:72.0pt'><b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> Wednesday, October 08, 2008 2:43 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Problem getting accurate count of pages in
framework</span><span lang=EN-US><o:p></o:p></span></p>

<div id=idOWAReplyText86825>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>An .rlo is an xml tree. It is
parsed sideways like an AW dive. Content is created as each node is
encountered:</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>//this is really what the engine does...</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>function parse(node){ //a node
from the .rlo file's xml</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; //do things with the node - like
create an icon or execute some script</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; //instantiate classes using the
information from the xml node to create icons</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; //icons will intialise before this
code continues</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; //script icons are executed here too,
in engine scope</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; //then loop over each child of node,
calling this function recursively</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; for (var i = 0; i &lt;
node.childNodes.length; i++){</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp;&nbsp;&nbsp; parse(node.childNodes[i]);</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; }</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>&nbsp; //decide whether to break or continue?</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>}</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>As the tree is parsed, the entry
frame and it's content is created. At this point the rest of the framework's
xml hasn't been parsed.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Flow moves to the next child node of the
framework's xml - the first page. The page is created and it's content's
parsed. The second page hasn't been parsed yet, so 1 of 1 is expected. </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Only then are&nbsp;the rest of the pages are
created - but - by definition - you cannot place code in page 1 that will
execute afterwards.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>for that very reason there is the onInit
event. This event is broadcast by rootIcon when the initial parse IS complete.
Use this in the entry frame to initialise your interface, and use onPageClose /
onPageOpen rather than have code in each page to set the interface items.
onInit will correct give you fw.pages.lenth, and onPageClose / onPageOpen are
more elegant / easier to maintain than code on each page.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>J</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>

<hr size=2 width="100%" align=center>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:72.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk on behalf of Paul Swanson<br>
<b>Sent:</b> Wed 08/10/2008 17:53<br>
<b>To:</b> xerte@lists.nottingham.ac.uk<br>
<b>Subject:</b> [Xerte] Problem getting accurate count of pages in framework</span><o:p></o:p></p>

</div>

<div>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>I'm
adding a &quot;Page x of y&quot; to a framework, and I'm not getting the
correct value for y (the number of pages in the framework).</span><o:p></o:p></p>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>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:</span><o:p></o:p></p>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>aboutDPCounter.setText('Page
' + (aboutDPFrame.currentPage + 1) + ' of ' + aboutDPFrame.pages.length;</span>
<o:p></o:p></p>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>When
I enter the framework, which currently has two pages of content, the page
counter reads &quot;Page 1 of 1.&quot; When I go to the next page, it reads
&quot;Page 2 of 2,&quot; and when I back to the first page it reads &quot;Page
1 of 2.&quot; If I then advance to page 2, it reads &quot;Page 2 of 2.&quot;</span><o:p></o:p></p>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>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.</span><o:p></o:p></p>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>_____________________________</span> <o:p></o:p></p>

<p style='margin-left:72.0pt'><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>&nbsp;Paul Swanson</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;Instructional
Designer</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;Harland
Financial Solutions</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;800.274.7280
Ext. 2462</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;Paul.Swanson@harlandfs.com</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>_____________________________</span>
<o:p></o:p></p>

</div>

</blockquote>

</div>

</blockquote>

</blockquote>

</div>

</body>

</html>