<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Cool.<BR><br><BR>So it can be called from the .rlo instead of the .swf.<BR>I don't like putting code in swfs (other than compiled routines).<BR><br><BR><br><div><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Fri, 22 Jul 2011 13:55:04 +0100<br>Subject: [Xerte] Re: Setting Focus on the SWF<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass BODY.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style><style id="ecxowaTempEditStyle">
</style><style title="owaParaStyle">
.ExternalClass P
{margin-bottom:0px;}

</style>



<div style="font-size:x-small;color:#000000;direction:ltr;font-family:Tahoma">
<div>The wrapper function is callJS(funcName, params);</div>
<div> </div>
<div><font face="tahoma">which wraps ExternalInterface.call(funcName, params);</font></div>
<div> </div>
<div><font face="tahoma">and since that's all it does the only reason or it to be there is because ExternalInterface isn't directly accessible from the Xerte script.</font></div>
<div dir="ltr"> </div>
<div id="ecxdivRpF331479" style="direction:ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney@nottingham.ac.uk]<br>
<b>Sent:</b> 22 July 2011 13:52<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Setting Focus on the SWF<br>
</font><br>
</div>

<div>
<div style="font-size:x-small;color:#000000;direction:ltr;font-family:Tahoma">
<div>try it and see: I'd place it in the swf.</div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div id="ecxdivRpF825729" style="direction:ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> 22 July 2011 13:23<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Setting Focus on the SWF<br>
</font><br>
</div>

<div>
<div dir="ltr">> <font face="tahoma" color="#000066">Do I put this in the SWF or rlo?</font> // in the .rlo<br>
<br>
<br>
Wait a sec.<br>
Where are you placing the code now?<br>
In the rlo or in the loaded swf?<br>
<br>
<br>
If that call works from the .rlo, leave it there.<br>
<br>
<br>
J, does the wrapper already exist then?<br>
<br>
<br>
<br>
<br>
<div>
<hr id="ecxstopSpelling">
Date: Fri, 22 Jul 2011 14:44:04 +0300<br>
From: admin@strivney.com<br>
To: xerte@lists.nottingham.ac.uk<br>
Subject: [Xerte] Re: Setting Focus on the SWF<br>
<br>
<div dir="ltr"><font color="#000066"><font face="verdana,sans-serif">Yes Dave, that works on its own.  And only opens one browser window when tested.:-)  Thank you.<br>
</font></font>
<div><font class="ecxApple-style-span" face="verdana, sans-serif" color="#000066"><br>
</font></div>
<div><font face="verdana, sans-serif" color="#000066">
<div>Julian:</div>
<div><br>
</div>
</font>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066">if (mdm != undefined){</font></div>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066">//</font><font face="tahoma" color="#ff0000">WHAT DO I PUT HERE?</font></div>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066">} else {</font></div>
<span class="ecxApple-style-span" style="font-family:arial,sans-serif;border-collapse:collapse"><font class="ecxApple-style-span" color="#000066">flash.external.ExternalInterface.call("document.getElementById(\"rlo\").focus");   </font></span>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066">}</font></div>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066"><br>
</font></div>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066">Do I put this in the SWF or rlo?</font></div>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066"><br>
</font></div>
<div style="font-family:Tahoma"><font face="tahoma" color="#000066">Deborah</font></div>
<font face="verdana, sans-serif" color="#000066">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</font>
<div class="ecxgmail_quote">On Fri, Jul 22, 2011 at 1:23 PM, Julian Tenney <span dir="ltr">
<<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="padding-left:1ex;border-left:#ccc 1px solid">
<div>
<div style="font-size:x-small;color:#000000;direction:ltr;font-family:Tahoma">
<div>use it to decide whether to call the flash.external.ExternalInterface blah. you only want to do that in the browser,</div>
<div style="direction:ltr">
<hr>
<font face="Tahoma" color="#000000" size="2">
<div><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Deborah Delin [<a href="mailto:admin@strivney.com">admin@strivney.com</a>]<br>
</div>
<b>Sent:</b> 22 July 2011 11:10
<div><br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Setting Focus on the SWF<br>
</div>
</font><br>
</div>
<div>
<div>
<div>
<div dir="ltr"><font color="#000066"><font face="verdana,sans-serif">Oh..........I see..........I think....<br>
</font></font>
<div><font face="verdana, sans-serif" color="#000066"><br>
</font></div>
<div><font face="verdana, sans-serif" color="#000066">I'm sorry to be dim but can you be a bit more specific.  Where do I put this code?  And how do I try it out?<br>
</font>
<div class="ecxgmail_quote"><br>
<blockquote class="ecxgmail_quote" style="padding-left:1ex;border-left:#ccc 1px solid">
<div>
<div style="font-size:x-small;color:#000000;direction:ltr;font-family:Tahoma">
<div><font face="tahoma">if (mdm != undefined){</font></div>
<div><font face="tahoma">  //we are at author time: the mdm scripting obejcts are available</font></div>
<div><font face="tahoma">} else {</font></div>
<div><font face="tahoma">  //we must be in the browser...</font></div>
<div><font face="tahoma">}</font></div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Deborah </div>
<blockquote class="ecxgmail_quote" style="padding-left:1ex;border-left:#ccc 1px solid">
<div>
<div style="font-size:x-small;color:#000000;direction:ltr;font-family:Tahoma">
<div dir="ltr"> </div>
</div>
</div>
</blockquote>
<div> </div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
 contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
<br>
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
 monitored as permitted by UK legislation. <br>
</div>
</div>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information
 contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div dir="ltr">
<div style="text-align:center">
<div style="text-align:left"><font face="verdana, sans-serif"><font color="#333399">Deborah          
<br>
                                                  <img height="45" src="http://www.strivney-english.com/strivney_logo.gif" width="96"><br>
</font></font></div>
</div>
<font face="verdana, sans-serif"><font color="#333399">                                                            
<br>
</font></font>
<div style="text-align:left"><font face="verdana, sans-serif"><font color="#333399">International Site (English instructions): </font></font><a href="http://www.strivney-english.com/index.asp" target="_blank"><font face="verdana, sans-serif"><font color="#333399"><b>Strivney
 English  - Where Learning to Read is Fun</b></font></font></a></div>
<div style="text-align:left"><font face="verdana, sans-serif"><font color="#333399">Site for Hebrew and English/Hebrew speakers</font></font></div>
<div style="text-align:left"><font face="verdana, sans-serif"><font color="#333399">(Hebrew and English Instructions):   </font></font><a href="http://strivney-english.co.il/" target="_blank"><font face="verdana, sans-serif"><font color="#333399"><b>סטריבני
 - ללמוד אנגלית זה כיף </b> </font></font></a><font face="verdana, sans-serif"><font color="#333399">  </font></font></div>
<div style="text-align:left"><font face="verdana, sans-serif"><font color="#333399"><br>
</font></font></div>
<div style="text-align:left"><a href="http://twitter.com/DeborahDelin" target="_blank"><font color="#333399"><font face="verdana, sans-serif">http://twitter.com/DeborahDelin</font></font></a><font color="#333399"><font face="verdana, sans-serif"> </font></font><font style="font-family:verdana,sans-serif" color="#333399">  
</font>       </div>
</div>
<br>
</div>
</div>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
 If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
 do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
 checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.</div>
</div>
</div>
</div>
</div>
</div>



<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.</div>                                     </div></body>
</html>