<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=idOWAReplyText23653 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> </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 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 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 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=stopSpelling>
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=ecxSection1>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">You can use duplicates as longa s they aren’t on the stage together, so in different apges, yes you can.</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Here’s what I like to do:</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal><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=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">currentFW.nextPage() and currentFW.prevPage()</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal><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=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal><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=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN> </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=ecxMsoNormal 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=ecxMsoNormal style="MARGIN-LEFT: 36pt"> </P>
<P class=ecxMsoNormal 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=ecxMsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR id=ecxstopSpelling align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=ecxMsoNormal 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=ecxMsoNormal 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=ecxMsoNormal 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> </P>
<P class=ecxMsoNormal 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…</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN></P>
<P class=ecxMsoNormal 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> </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=ecxMsoNormal 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=ecxMsoNormal style="MARGIN-LEFT: 72pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN> </P>
<P class=ecxMsoNormal 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=ecxMsoNormal 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=ecxMsoNormal 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=ecxMsoNormal style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"></SPAN> </P>
<DIV class=ecxMsoNormal 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=ecxMsoNormal 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" target=_new>I'm a rock star.</A> </DIV></BODY></HTML>