diff --git a/src/as/com/threerings/crowd/chat/client/ChatDirector.as b/src/as/com/threerings/crowd/chat/client/ChatDirector.as index 632e632ad..d6ba3c4d3 100644 --- a/src/as/com/threerings/crowd/chat/client/ChatDirector.as +++ b/src/as/com/threerings/crowd/chat/client/ChatDirector.as @@ -66,6 +66,9 @@ import com.threerings.crowd.chat.data.UserSystemMessage; public class ChatDirector extends BasicDirector implements LocationObserver, MessageListener { + // statically reference classes we require + ChatMarshaller; + /** * Creates a chat director and initializes it with the supplied context. The chat director will * register itself as a location observer so that it can automatically process place @@ -99,9 +102,6 @@ public class ChatDirector extends BasicDirector registerCommandHandler(msg, "think", new ThinkHandler()); // registerCommandHandler(msg, "tell", new TellHandler()); registerCommandHandler(msg, "broadcast", new BroadcastHandler()); - - // ensure that the compiler includes these necessary symbols - var i :int = ChatMarshaller.AWAY; } /** diff --git a/src/as/com/threerings/crowd/client/CrowdClient.as b/src/as/com/threerings/crowd/client/CrowdClient.as index 1ab39b69e..67e5d6741 100644 --- a/src/as/com/threerings/crowd/client/CrowdClient.as +++ b/src/as/com/threerings/crowd/client/CrowdClient.as @@ -34,13 +34,13 @@ import com.threerings.crowd.data.CrowdPermissionPolicy; */ public class CrowdClient extends Client { + // statically reference classes we require + BodyMarshaller; + CrowdPermissionPolicy; + public function CrowdClient (creds :Credentials) { super(creds); - - // ensure that the compiler includes these necessary symbols - var i :int = BodyMarshaller.SET_IDLE; - var c :Class = CrowdPermissionPolicy; } } } diff --git a/src/as/com/threerings/crowd/client/LocationDirector.as b/src/as/com/threerings/crowd/client/LocationDirector.as index faa48f4ef..9441f06f3 100644 --- a/src/as/com/threerings/crowd/client/LocationDirector.as +++ b/src/as/com/threerings/crowd/client/LocationDirector.as @@ -52,7 +52,8 @@ import com.threerings.crowd.util.CrowdContext; public class LocationDirector extends BasicDirector implements Subscriber, LocationReceiver { - private static const log :Log = Log.getLog(LocationDirector); + // statically reference classes we require + LocationMarshaller; /** * Constructs a location director which will configure itself for operation using the supplied @@ -67,9 +68,6 @@ public class LocationDirector extends BasicDirector // register for location notifications _cctx.getClient().getInvocationDirector().registerReceiver(new LocationDecoder(this)); - - // ensure that the compiler includes these necessary symbols - var i :int = LocationMarshaller.LEAVE_PLACE; } /** @@ -540,6 +538,8 @@ public class LocationDirector extends BasicDirector }); } + protected const log :Log = Log.getLog(this); + /** The context through which we access needed services. */ protected var _cctx :CrowdContext; diff --git a/src/as/com/threerings/presents/client/Client.as b/src/as/com/threerings/presents/client/Client.as index 4331cfa01..bb61a8bc4 100644 --- a/src/as/com/threerings/presents/client/Client.as +++ b/src/as/com/threerings/presents/client/Client.as @@ -54,12 +54,12 @@ public class Client extends EventDispatcher private static const log :Log = Log.getLog(Client); + // statically reference classes we require + TimeBaseMarshaller; + public function Client (creds :Credentials) { _creds = creds; - - // ensure that the compiler includes these necessary symbols - var i :int = TimeBaseMarshaller.GET_TIME_OID; } /**