<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:Tahoma
}
</STYLE>

<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV id=idOWAReplyText95836 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I'll check that out. I only recently discovered allowDomain. I've also had inexplicable failuers when calling javascript this way. I'll try the same thing, see what happens...</FONT></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> Thu 07/08/2008 22:13<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV>Possibility of security issues?<BR>Maybe with 8 you need to add the AllowDomain or something?<BR>Just shooting in the dark.<BR>&nbsp;<BR>Dave<BR><BR><BR>
<HR>
<BR>Subject: RE: [Xerte] Is there a way to make an exit button?<BR>Date: Thu, 7 Aug 2008 22:07:50 +0100<BR>From: Julian.Tenney@nottingham.ac.uk<BR>To: xerte@lists.nottingham.ac.uk<BR><BR><BR>
<DIV id=EC_idOWAReplyText71904 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>getURL should work. Check the case.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Paul Swanson<BR><B>Sent:</B> Thu 07/08/2008 18:10<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=EC_895250417-07082008><FONT face=Verdana color=#0000ff size=2>So how do you access external javascript? I've added the following to the script section of the html page:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_895250417-07082008><FONT face=Verdana color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_895250417-07082008><FONT face="Courier New" size=2>function closeWindow () {<BR>&nbsp;&nbsp;&nbsp; // closes this window<BR>&nbsp;&nbsp;&nbsp; self.close ();<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>I've tried calling it with:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" size=2>getUrl('javascript:closeWindow()');</FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>and:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" size=2>ExternalInterface.call('closeWindow');</FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>Neither work, so I know I'm not doing it right. What's the correct command and syntax? fsCommand?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=EC_895250417-07082008><FONT face="Courier New" color=#0000ff size=2><FONT face=Verdana>Paul</FONT></DIV>
<DIV dir=ltr align=left><BR></DIV></FONT></SPAN><BR>
<BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> Thursday, August 07, 2008 12:56 AM<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2>You've got it - it will have to be some javascript. I don't know if you can close the window without that 'a script is trying to close this window' security dialog.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2>Let me know how you get on - I could add a close function to the html pages Xerte publishes,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=EC_426075407-07082008><FONT face=Arial color=#0000ff size=2>J</FONT></SPAN></DIV><BR>
<DIV class=EC_OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul Swanson<BR><B>Sent:</B> 06 August 2008 23:45<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> [Xerte] Is there a way to make an exit button?<BR></FONT><BR></DIV>
<DIV></DIV><FONT face=Verdana size=2>Is there a command that will close the Flash window? rootIcon.exit(); leaves the "Loading Complete" message on screen. Or will I have to call some javascript in the html page that launches the course?</FONT><BR><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT> <BR><FONT face="Courier New" color=#808080 size=2>&nbsp;Paul Swanson</FONT> <BR><FONT face="Courier New" color=#808080 size=2>&nbsp;Portland, Oregon, USA</FONT> <BR><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT> <BR></BLOCKQUOTE></DIV><BR>
<HR>
Reveal your inner athlete and share it with friends on Windows Live. <A href="http://revealyourinnerathlete.windowslive.com/?locale=en-us&amp;ocid=TXT_TAGLM_WLYIA_whichathlete_us" target=_new>Share now!</A> </DIV></BODY></HTML>