<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=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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.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'>I tend to always use MCs as buttons. Use on(release).<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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You’d do better by organising all your code in the first frame of the movie. Give your MCs instance names, and then you can put all your code in the same place. You can also attach items from the lbrary here, and then set up event handlers, set properties, etc.<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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>myInstanceName.onRelease = function(){…blah…}<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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>myOtherInstanceName.onRelease = function(){…blah…}<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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>etc. It makes it a lot easier to find your way around.<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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Use lockroot to make those components work properly when loaded into xerte. There’s a components example in [xerte]\templates\components<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><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> 25 September 2011 15:32<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: SWF not Functioning in Xerte - rlo attached<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='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'>On Sun, Sep 25, 2011 at 4:24 PM, Dave Burnett <<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>> wrote:<o:p></o:p></p></div><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='margin-left:36.0pt'>In the no-lockroot .fla change<br><br>// _root.dropmenu.gotoAndStop("done");<br><br>to<br>this.gotoAndStop("done");<o:p></o:p></p></div></div></blockquote><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'>Ouch! I mistakenly used a button and not an mc in the sample I made. That does indeed work on a button, but what should I put on an mc? I could change all my mc's over to buttons but that doesn't help because none of the scoring mechanism as I have it works either on buttons or mc's. I also don't manage to delete the on (release) function, either in or out of Xerte, so I decided to disappear the clip once question was answered and activate another mc. But I can't get this to work on buttons or mc's in Xerte.</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'>Could you possibly tell me how you would change the following to work in Xerte on an mc which is inside an mc on the main timeline:</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'>on (press) {<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span> </span>_root.hit(); //registers positive score<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span> </span>_root.updateScore(); //calculates score<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span> </span>_root.scoreText(); //displays score <o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span> </span>_root.three_drop._y=500; /"disappears" the parent dropdown mc on completion <o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span class=apple-tab-span> </span>_root.smiley_3.gotoAndStop(2); //brings up a smiley picture <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'>}<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'><span style='font-family:"Verdana","sans-serif";color:#330099'>Thanks so much and sorry to be so complicated.</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:#330099'>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><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>Also, there are <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'><div><div><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt'><br><br><br><br><o:p></o:p></p><div><div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal style='margin-left:36.0pt'>Date: Sun, 25 Sep 2011 11:42:23 +0300<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt'><br>From: <a href="mailto:admin@strivney.com" target="_blank">admin@strivney.com</a><br>To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>Subject: [Xerte] Re: SWF not Functioning in Xerte - rlo attached<o:p></o:p></p></div><div><div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#000066'>Trying to simplify my problem:</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'>SWF works as desired outside of Xerte.</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'>Xerte ignores on (press) commands attached to mc's two levels down - e.g. </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-family:"Verdana","sans-serif";color:#000066'>_root.scoreText();<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'>_root.smiley_5.gotoAndStop(2);<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'><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'>Adding this._lockroot = true; causes Xerte to take notice of the on (press) commands but messes up the dropdown menu (menu drops down when mouse is over a different part of stage).</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 attach a rlo with fla's saved in Flash 8 which illustrates both of above.</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'>Thanks very much for any help - this is driving me mad!</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><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><div><p class=MsoNormal style='margin-left:36.0pt'>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><br>_______________________________________________ Xerte mailing list <a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> 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.<o:p></o:p></p></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt'><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><o:p></o:p></p></blockquote></div><p class=MsoNormal style='margin-left:36.0pt'><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></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:#333399'>Deborah <br> <img border=0 width=96 height=45 id="_x0000_i1026" src="http://www.strivney-english.com/strivney_logo.gif"></span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#333399'> </span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#333399'>International Site (English instructions): </span><a href="http://www.strivney-english.com/index.asp" target="_blank"><b><span style='font-family:"Verdana","sans-serif";color:#333399'>Strivney English - Where Learning to Read is Fun</span></b></a><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#333399'>Site for Hebrew and English/Hebrew speakers</span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana","sans-serif";color:#333399'>(Hebrew and English Instructions): </span><a href="http://strivney-english.co.il/" target="_blank"><b><span style='font-family:"Arial","sans-serif";color:#333399'>סטריבני</span></b><b><span style='font-family:"Verdana","sans-serif";color:#333399'> - </span></b><b><span style='font-family:"Arial","sans-serif";color:#333399'>ללמוד</span></b><b><span style='font-family:"Verdana","sans-serif";color:#333399'> </span></b><b><span style='font-family:"Arial","sans-serif";color:#333399'>אנגלית</span></b><b><span style='font-family:"Verdana","sans-serif";color:#333399'> </span></b><b><span style='font-family:"Arial","sans-serif";color:#333399'>זה</span></b><b><span style='font-family:"Verdana","sans-serif";color:#333399'> </span></b><b><span style='font-family:"Arial","sans-serif";color:#333399'>כיף</span></b><b><span style='font-family:"Verdana","sans-serif";color:#333399'> </span></b><span style='font-family:"Verdana","sans-serif";color:#333399'> </span></a><span style='font-family:"Verdana","sans-serif";color:#333399'> </span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'><a href="http://twitter.com/DeborahDelin" target="_blank"><span style='font-family:"Verdana","sans-serif";color:#333399'>http://twitter.com/DeborahDelin</span></a><span style='font-family:"Verdana","sans-serif";color:#333399'> </span> <o:p></o:p></p></div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div></div></body></html>