<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'>
<div>I tried myIcon.<span style="font-size: 10pt; ">readFile and that seems to be able to be called repeatedly without issue.</span></div><div><span style="font-size: 10pt; ">Must just be something with loadVars.</span></div><div><span style="font-size: 10pt; ">Odd.</span></div><div><span style="font-size: 10pt; "><br></span></div><div><br></div><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Thu, 29 Mar 2012 14:54:57 +0100<br>Subject: [Xerte] Re: event failing on second call<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass .ecxshape
{;}
</style><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle18
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle181
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxEmailStyle28
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If you load a swf into a movieclip, you lose any custom methods / properties of that clip after the load.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">So you can do</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">mc.someFunction = function(){ //blah }</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">mc.loadMovie(‘some.swf’, blah)</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">and then in some.swf’s timeline call this.somefunction. It doesn’t exist. Maybe I was thinking of that.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Not sure what’s going with loadVars, I’ve never used them, but either debug things in the engine, or send me a simple example and I’ll see what’s happening.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" 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>Dave Burnett<br><b>Sent:</b> 29 March 2012 14:52<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Re: event failing on second call</span></p></div></div><p class="ecxMsoNormal" style="margin-left:36.0pt"> </p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">The load wipes stuff out?</span></p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Is it true for all the methods of sending/loading external data?</span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><div><div class="ecxMsoNormal" align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="2" width="100%" align="center" id="ecxstopSpelling"></span></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Thu, 29 Mar 2012 12:50:42 +0100<br>Subject: [Xerte] Re: event failing on second call</span></p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I think its like loading XML where the load wipes out methods / properties on the object.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Can you build a new icon for each load vars call?</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">i.e.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">INT</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> BUT</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> TXT // a dummy loadVars </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> SCR //kick off the loadvars</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> INT</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> EVT</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> //handle the loadvars</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" style="margin-left:72.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>Dave Burnett<br><b>Sent:</b> 29 March 2012 12:37<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Re: event failing on second call</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p></div></div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>OK, here's the trace of 2 consecutive calls with</span></p><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">debug(rootIcon.loadVars); </span></p><div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>//first call</span></p><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">top debug //directly under button</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">[type Function]</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">load //directly under loadVars call</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">[type Function]</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">loaded //success</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">//second call</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">top debug</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">onLoad=%5Btype%20Function%5D&onData=%5Btype%20Function%5D&icon=%5Flevel0%2Eengine%2EIFC</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">load</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">onLoad=%5Btype%20Function%5D&onData=%5Btype%20Function%5D&icon=%5Flevel0%2Eengine%2EIFC</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">What is happening to the loadVars function?</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><div style="margin-left:36.0pt"><div class="ecxMsoNormal" align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="2" width="100%" align="center"></span></div></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: event failing on second call<br>Date: Thu, 29 Mar 2012 06:43:54 -0400</span></p><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I click a button to pop up a scrolling text window which is populated with a loadVars call to a text file.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">rootIcon.loadVars('http://www.myserver.com/common/revisions.txt?nt=' + (new Date()).getTime());</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">followed by an Event interaction</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">onLoadVars</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">rootIcon</span></p></div></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">It works the first time, but if I click the button again, the event will not fire again.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I ran into this once before but can't remember what the issue was. </span></p></div><div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div></div></div></div></div></div></div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><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><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.</span></p></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>