<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></STYLE>

<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV id=idOWAReplyText32278 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Not cur_fw_id = icon.parentNode.parentNode.attributes.id</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial>but</FONT></DIV>
<DIV dir=ltr><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr>cur_fw_id = icon.parentNode.parentNode.clip();</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<BR><B>Sent:</B> Fri 20/11/2009 23:58<BR><B>To:</B> Xerte list<BR><B>Subject:</B> RE: [Xerte] Controlling Nav buttons<BR></FONT><BR></DIV>
<DIV>All very useful, but why is something that shows up in debug as the correct value not be evaluated by the statement?<BR><BR>I tried to use the sequence you described:<BR><BR>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">currentFW.nextPage() and currentFW.prevPage()</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">As you pass into various sub FWs, in their entry frames do currentFW = whatever this FW is;</SPAN></P><BR>How does mine differ:<BR><BR>cur_fw_id = icon.parentNode.parentNode.attributes.id; // in SCR in FW_ENT<BR><BR>//In previous button<BR>debug(cur_fw_id); //shows correct id of i65777<BR>cur_fw_id.prevPage(); //does nothing<BR><BR>If I put the actual value in:<BR>165777.prevPage(); //works fine<BR><BR><BR><BR><BR>
<HR id=stopSpelling>
Subject: RE: [Xerte] Controlling Nav buttons<BR>Date: Fri, 20 Nov 2009 22:21:41 +0000<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>

<DIV id=ecxidOWAReplyText23653 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>icon //is an XMLNode</FONT></DIV>
<DIV dir=ltr>icon.parentNode;//is its parent XMLNode</DIV>
<DIV dir=ltr>icon.parentNode.clip() //gives you the movieclip instantiated from that node;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>clip() is a method that all XMLNodes get - here are some other useful ones like findChildByName(), findParentByID() - see the help.</DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<BR><B>Sent:</B> Fri 20/11/2009 19:14<BR><B>To:</B> Xerte list<BR><B>Subject:</B> RE: [Xerte] Controlling Nav buttons<BR></FONT><BR></DIV>
<DIV><BR>Is there a trick I'm missing to pass the curr fw id variable&nbsp; into statements:<BR><BR>cur_fw_id = icon.parentNode.parentNode.attributes.id;<BR>debug(cur_fw_id); //shoes correct id<BR>cur_fw_id.prevPage(); //does nothing<BR><BR>If I put the actual value in:<BR>165777.prevPage(); //works fine<BR><BR><BR><BR><BR><BR><BR>
<HR id=ecxstopSpelling>
Subject: RE: [Xerte] Controlling Nav buttons<BR>Date: Fri, 20 Nov 2009 16:17:08 +0000<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk<BR><BR>
<STYLE>
.ExternalClass .ecxshape
{}
</STYLE>

<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink
{}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{}
.ExternalClass span.ecxecxemailstyle18
{}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle181
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxEmailStyle28
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</STYLE>

<DIV class=ecxecxSection1>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">You can use duplicates as longa s they aren&#8217;t on the stage together, so in different apges, yes you can.</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Here&#8217;s what I like to do:</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Add the back and next buttons in the main entry frame. In the scripts do</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">currentFW.nextPage() and currentFW.prevPage()</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">As you pass into various sub FWs, in their entry frames do currentFW = whatever this FW is;</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Then you have one set of controls that can navigate lots of FWs.</SPAN></P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN>&nbsp;</P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Dave Burnett<BR><B>Sent:</B> Friday, November 20, 2009 4:10 PM<BR><B>To:</B> Xerte list<BR><B>Subject:</B> RE: [Xerte] Controlling Nav buttons</SPAN></P></DIV></DIV>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt">&nbsp;</P>
<P class=ecxecxMsoNormal style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Thanks Julian, I'll check out that handler for the implications.<BR>If I give multiple RES items the same rs, does that set up a conflict, or will they all be affected the same? <BR><BR></SPAN></P>
<DIV class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR id=ecxecxstopSpelling align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=ecxecxMsoNormal style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Subject: RE: [Xerte] Controlling Nav buttons<BR>Date: Fri, 20 Nov 2009 15:40:25 +0000<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk</SPAN></P>
<DIV>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">In an onOpenPage event handler?</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN></P>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Or even in the button scripts&#8230;</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN></P>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 72pt"><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Dave Burnett<BR><B>Sent:</B> Friday, November 20, 2009 3:26 PM<BR><B>To:</B> Xerte list<BR><B>Subject:</B> [Xerte] Controlling Nav buttons</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN></P></DIV></DIV>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"><BR>Now I have a handle on global navigation, on to local navigation.<BR><BR>I can see a few ways to do this, but is there a best practice for hiding/showing Next and Previous buttons in a classic page turner setup?<BR><BR>Giving the buttons in question an rs value and using the Visible property looks like the way to go, but where's the best place for the controlling code?<BR><BR>Cheers,<BR><BR>Dave </SPAN></P>
<DIV style="MARGIN-LEFT: 36pt">
<DIV class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV></DIV>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Windows 7: It works the way you want. <A href="http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2">Learn more.</A></SPAN></P></DIV>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN>&nbsp;</P>
<DIV class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=ecxecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">Hotmail: Trusted email with powerful SPAM protection. <A href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">Sign up now.</A></SPAN></P></DIV><BR>
<HR>
Windows 7: I wanted simpler, now it's simpler. <A href="http://www.microsoft.com/Windows/windows-7/default.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:112009">I'm a rock star.</A> </DIV><BR>
<HR>
Hotmail: Trusted email with powerful SPAM protection. <A href="http://clk.atdmt.com/GBL/go/177141665/direct/01/" target=_new>Sign up now.</A> </DIV></BODY></HTML>