<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style>
<meta content="MSHTML 6.00.6000.17095" name="GENERATOR">
<style id="owaTempEditStyle"></style>
</head>
<body class="hmmessage" ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>myVar = new Date();</div>
<div><font face="tahoma">debug(myVar.getTime());</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">also works</font><font face="Tahoma" color="#000000" size="2"></font></div>
<div id="divRpF222153" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> 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 17:00<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: getTime oddness<br>
</font><br>
</div>
<div></div>
<div><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>
<style>.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
}
</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 face="Tahoma" color="#000000" size="2"></font> </div>
<div id="ecxdivRpF51708" style="DIRECTION: ltr">
<hr>
<font face="Tahoma" color="#000000" 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-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<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.
</div>
</div>
</body>
</html>