From d1e629ce8f3e29a0e64175bb653805b60479663f Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 13 Dec 2006 20:47:42 +0000 Subject: [PATCH] Track the client timestamp in the actionscript way. (Time values are ints and start at 0 when the flash player starts up, there is a different way to read the epoch millis, returned as a double) git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4482 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/chat/data/ChatMessage.as | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/crowd/chat/data/ChatMessage.as b/src/as/com/threerings/crowd/chat/data/ChatMessage.as index de89bf662..e9219807a 100644 --- a/src/as/com/threerings/crowd/chat/data/ChatMessage.as +++ b/src/as/com/threerings/crowd/chat/data/ChatMessage.as @@ -21,6 +21,8 @@ package com.threerings.crowd.chat.data { +import flash.utils.getTimer; // function import + import com.threerings.util.ClassUtil; import com.threerings.util.Long; @@ -45,7 +47,7 @@ public /*abstract*/ class ChatMessage public var localtype :String; /** The client time that this message was created. */ - public var timestamp :Long; + public var timestamp :int; public function ChatMessage (msg :String = null, bundle :String = null) { @@ -62,7 +64,7 @@ public /*abstract*/ class ChatMessage message = msg; this.localtype = localtype; bundle = null; - //timestamp = System.currentTimeMillis(); + timestamp = getTimer(); } /**