Updated to match API changes in Beta3.
InvocationRegistration had a constructor called Registration. I wonder if that was causing the compile error with beta2. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4104 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -5,7 +5,7 @@ import flash.display.Stage;
|
||||
import flash.events.EventDispatcher;
|
||||
import flash.events.TimerEvent;
|
||||
|
||||
import flash.util.Timer;
|
||||
import flash.utils.Timer;
|
||||
|
||||
import com.threerings.util.ObserverList;
|
||||
|
||||
@@ -123,7 +123,7 @@ public class Client extends EventDispatcher
|
||||
return _version;
|
||||
}
|
||||
|
||||
public function setVersion (version :String)
|
||||
public function setVersion (version :String) :void
|
||||
{
|
||||
_version = version;
|
||||
}
|
||||
@@ -270,7 +270,7 @@ public class Client extends EventDispatcher
|
||||
return;
|
||||
}
|
||||
|
||||
var now :uint = flash.util.getTimer();
|
||||
var now :uint = flash.utils.getTimer();
|
||||
if (now - _comm.getLastWrite() > PingRequest.PING_INTERVAL) {
|
||||
_comm.postMessage(new PingRequest());
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ package com.threerings.presents.client {
|
||||
|
||||
import flash.events.Event;
|
||||
import flash.events.TimerEvent;
|
||||
import flash.util.Timer;
|
||||
import flash.utils.Timer;
|
||||
|
||||
import mx.collections.IList;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import flash.events.IOErrorEvent;
|
||||
|
||||
import flash.net.Socket;
|
||||
|
||||
import flash.util.ByteArray;
|
||||
import flash.util.Endian;
|
||||
import flash.utils.ByteArray;
|
||||
import flash.utils.Endian;
|
||||
|
||||
import com.threerings.util.Util;
|
||||
|
||||
@@ -135,7 +135,7 @@ public class Communicator
|
||||
*/
|
||||
internal function updateWriteStamp () :void
|
||||
{
|
||||
_lastWrite = flash.util.getTimer();
|
||||
_lastWrite = flash.utils.getTimer();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -70,7 +70,8 @@ public class InvocationDirector
|
||||
public function unregisterReceiver (receiverCode :String) :void
|
||||
{
|
||||
// remove the receiver from the list
|
||||
for (var iter :IViewCursor = _reclist.getCursor(); iter.moveNext(); ) {
|
||||
for (var iter :IViewCursor = _reclist.createCursor();
|
||||
iter.moveNext(); ) {
|
||||
var decoder :InvocationDecoder =
|
||||
(iter.current as InvocationDecoder);
|
||||
if (decoder.getReceiverCode() === receiverCode) {
|
||||
@@ -115,7 +116,8 @@ public class InvocationDirector
|
||||
{
|
||||
_clobj.startTransaction();
|
||||
try {
|
||||
for (var itr :IViewCursor = _reclist.getCursor(); itr.moveNext(); ) {
|
||||
for (var itr :IViewCursor = _reclist.createCursor();
|
||||
itr.moveNext(); ) {
|
||||
var decoder :InvocationDecoder =
|
||||
(itr.current as InvocationDecoder);
|
||||
assignReceiverId(decoder);
|
||||
|
||||
@@ -24,7 +24,8 @@ public class InvocationRegistration
|
||||
public var receiverId :int;
|
||||
|
||||
/** Creates and initializes a registration instance. */
|
||||
public function Registration (receiverCode :String, receiverId :int)
|
||||
public function InvocationRegistration (
|
||||
receiverCode :String, receiverId :int)
|
||||
{
|
||||
this.receiverCode = receiverCode;
|
||||
this.receiverId = receiverId;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.threerings.presents.client {
|
||||
|
||||
import flash.util.describeType;
|
||||
import flash.utils.describeType;
|
||||
|
||||
import mx.collections.ArrayCollection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user