<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)"><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:"\@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;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Don’t do the hittest in onEnterFrame: you are constantly polling for the test. Instead run the hittest off onMouseDown – then it only needs to check when the mouse goes down, not 24 times a second.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><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>Deborah Delin<br><b>Sent:</b> 24 September 2011 09:11<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] SWF not Functioning in Xerte<o:p></o:p></span></p></div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'>Hi,<o:p></o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>I have created an SWF which I am displaying via Xerte Wizards Text Flash SWF template.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>The SWF has several dropdown menus using this code:<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><div><p class=MsoNormal style='margin-left:36.0pt'>onClipEvent (load) {<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>            </span>previouslyOver = false;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>}<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>onClipEvent (enterFrame) {<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>            </span>currentlyOver = this.hitTest(_root._xmouse,_root._ymouse,true);<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>            </span>if(!previouslyOver and currentlyOver) {<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>                        </span>previouslyOver = true;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>                        </span>this.gotoAndPlay(1);<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>            </span>}<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>            </span>else if (previouslyOver and !currentlyOver) {<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>                        </span>previouslyOver = false;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>                        </span>this.gotoAndPlay(10-_currentframe);<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span>            </span>}<span class=apple-tab-span>          </span><o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>}<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>Students are required to click the right movie clip on the dropdown menu.  The movie clips have on (press) code which alters the score and re-directs them according to their answers.  This all works perfectly outside of Xerte but once in Xerte the dropdown menus are working but nothing happens with the on (press) commands. <o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>Thanks in advance for your help.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>Deborah<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>p.s.  I didn't want to post the SWF publicly but if anyone is prepared to have a look at the RLO I'd be happy to mail it. <o:p></o:p></p></div></div></div></body></html>