<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Just for archives clarity.<br><br>myVar = new Date().getTime();<br>debug(myVar); //undefined<br><br>myVar = (new Date()).getTime();<br>
debug(myVar); //1301590743993<br><br><br><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: Mike.Baker@RelianceInteractive.com; xerte@lists.nottingham.ac.uk<br>Date: Thu, 31 Mar 2011 16:48:47 +0100<br>Subject: [Xerte] Re: getTime oddness<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
@page WordSection1
{;}
.ExternalClass P.ecxMsoNormal
{font-size:12pt;font-family:'Times New Roman','serif';}
.ExternalClass LI.ecxMsoNormal
{font-size:12pt;font-family:'Times New Roman','serif';}
.ExternalClass DIV.ecxMsoNormal
{font-size:12pt;font-family:'Times New Roman','serif';}
.ExternalClass A:link
{color:blue;text-decoration:underline;}
.ExternalClass SPAN.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass A:visited
{color:purple;text-decoration:underline;}
.ExternalClass SPAN.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass P
{font-size:12pt;margin-left:0in;margin-right:0in;font-family:'Times New Roman','serif';}
.ExternalClass SPAN.ecxEmailStyle18
{color:#1f497d;font-family:'Calibri','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{font-size:10pt;}
.ExternalClass DIV.ecxWordSection1
{;}
</style>
<style>
</style><style title="owaParaStyle">
.ExternalClass P
{margin-bottom:0px;}
</style>
<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>It's a runtime interpreter. It tokenises the code as it executes it. I've never fully understood the whole lexing / tokenising process: the code is in the XMLEngine.fla. There is the odd scenario it chokes on, but seven years on and must be several million
lines of execution later, I'm happy to say it mostly works!</div>
<div> </div>
<div>I would have hought that is what's happening, yes, and why myVar = new Date().getTime(); works.</div>
<div dir="ltr"><font color="#000000" face="Tahoma" size="2"></font> </div>
<div id="ecxdivRpF51708" style="direction: ltr;">
<hr>
<font color="#000000" face="Tahoma" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Mike Baker [Mike.Baker@RelianceInteractive.com]<br>
<b>Sent:</b> 31 March 2011 16:16<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> [Xerte] Re: getTime oddness<br>
</font><br>
</div>
<div></div>
<div>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Because it forces the compiler to consider the phrase in the parens first. It may have been trying to do new (Date().getTime()); if the compiler tokenizes
by whitespace first.</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Mike</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<div style="border-right: medium none; padding: 0in 0in 0in 4pt; border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue;">
<div>
<div style="border-right: medium none; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;">
<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; 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> Thursday, March 31, 2011 8:24 AM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: getTime oddness</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"><br>
debug((new Date()).getTime());<br>
<br>
works with extra parentheses. <br>
<br>
?<br>
<br>
<br>
<br>
</span></p>
<div class="ecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">
<hr id="ecxstopSpelling" align="center" width="100%" size="2">
</span></div>
<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From: Julian.Tenney@nottingham.ac.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Date: Thu, 31 Mar 2011 14:06:05 +0100<br>
Subject: [Xerte] Re: getTime oddness</span></p>
<div>
<div>
<p class="ecxMsoNormal"><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';">myVar = new Date().getTime();</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';">debug(myVar); ??</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';"></span> </p>
</div>
<div id="ecxdivRpF941047">
<div class="ecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';">
<hr align="center" width="100%" size="2">
</span></div>
<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><b><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';"> 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> 31 March 2011 10:27<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] getTime oddness</span></p>
</div>
<div>
<p class="ecxMsoNormal"><span style="font-size: 10pt; color: black; font-family: 'Tahoma','sans-serif';"><br>
Why would I get an undefined here?<br>
<br>
debug(new Date().getTime());<br>
<br>
new Date() gives me a date.</span></p>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-size: 10pt; 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. </body>
</html>