<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;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* 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.apple-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle19
{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'>Take a step back, make a simple example and describe to me what you are trying to do…<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> 26 September 2011 12:07<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: 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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Hi Julian,</span><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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Thanks for the guidance. I am struggling:</span><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'><span style='font-family:"Verdana","sans-serif";color:#000066'>- I moved the code on the mc's which were two levels down to the first frame using on(release) as you suggested. The on(release) still doesn't function in Xerte - maybe because the parent mc has onClipEvent (load) { code on it?</span><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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Did you mean to also put the onClipEvent (load) { code on the first frame? instead of on the mc? I tried to do this but don't succeed. </span><span style='font-family:"Verdana","sans-serif"'> </span><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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Code on clip is:</span><o:p></o:p></p></div><div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'>onClipEvent (load) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>previouslyOver = false;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'>onClipEvent (enterFrame) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>currentlyOver = this.hitTest(_root._xmouse,_root._ymouse,true);<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>if(!previouslyOver and currentlyOver) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>previouslyOver = true;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>this.gotoAndPlay(1);<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>else if (previouslyOver and !currentlyOver) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>previouslyOver = false;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>this.gotoAndPlay(10-_currentframe);<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#000066'>I don't know how to convert this to code for the main timeline. I tried:</span><span style='font-family:"Verdana","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p></div><div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'>three_drop.onMouseDown = function ()<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'> {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>previouslyOver = false;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'> {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>currentlyOver = this.hitTest(_root._xmouse,_root._ymouse,true);<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>if(!previouslyOver and currentlyOver) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>previouslyOver = true;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>this.gotoAndPlay(1);<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>else if (previouslyOver and !currentlyOver) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>previouslyOver = false;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>this.gotoAndPlay(10-_currentframe);<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-family:"Verdana","sans-serif"'> </span></span><span style='font-family:"Verdana","sans-serif"'>}<o:p></o:p></span></p></div></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#000066'>But that didn't work.</span><span style='font-family:"Verdana","sans-serif"'><o:p></o:p></span></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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Also, substituting the onEnterFrame which is on the dropdown clip for </span><span class=apple-style-span><span style='font-size:11.5pt;color:#1F497D'>onMouseDown </span></span><span class=apple-style-span><span style='font-size:11.5pt;font-family:"Verdana","sans-serif";color:#000066'>as you suggest below didn't work.</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'><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'>onClipEvent (load) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'> </span></span><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'>previouslyOver = false;<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'>}<o:p></o:p></span></p></div></div><div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'>onClipEvent (onMouseDown) {<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'> </span></span><span style='font-size:11.5pt;font-family:"Arial","sans-serif"'>currentlyOver = this.hitTest(blah<o:p></o:p></span></p></div></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt'><span style='font-size:11.0pt;color:#1F497D'>Don’t do the hittest in onEnterFrame: ..........Instead run the hittest off onMouseDown </span><o:p></o:p></p></div></div></blockquote><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt'><span class=apple-style-span><span style='font-size:11.5pt;color:#1F497D;background:white'>You said:</span></span><span style='background:white'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt'><span style='background:white'><o:p> </o:p></span></p><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-style-span><span style='font-size:11.5pt;font-family:"Arial","sans-serif";color:#1F497D;background:white'>Use lockroot to make those components work properly when loaded into xerte.</span></span><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'><span class=apple-style-span><span style='font-size:11.5pt;font-family:"Arial","sans-serif";color:#000066;background:white'>By this you mean put this._lockroot = true; on the first frame? This indeed makes the functions work in Xerte but it throws the dropdown out of sync. and makes the clip unoperable.</span></span><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'><span class=apple-style-span><span style='font-size:11.5pt;font-family:"Arial","sans-serif";color:#1F497D;background:white'> There’s a components example in [xerte]\templates\components</span></span> <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'><span style='font-family:"Verdana","sans-serif";color:#000066'>I downloaded the compoments file but I'm afraid it meant nothing to me.</span><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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Sorry, as you can see, I'm over my head here. Your time and patience very much appreciated.</span><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'><span style='font-family:"Verdana","sans-serif";color:#000066'>Deborah</span><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'><o:p> </o:p></p></div></div></div></div></div></body></html>