diff --git a/src/as/com/threerings/io/Translations.as b/src/as/com/threerings/io/Translations.as index fcf8edce2..9b46f4912 100644 --- a/src/as/com/threerings/io/Translations.as +++ b/src/as/com/threerings/io/Translations.as @@ -21,7 +21,7 @@ package com.threerings.io { -import com.threerings.util.HashMap; +import flash.utils.Dictionary; /** * Maintains a set of translations between actionscript class names @@ -31,27 +31,27 @@ public class Translations { public static function getToServer (asName :String) :String { - var javaName :String = (_toServer.get(asName) as String); + var javaName :String = (_toServer[asName] as String); return (javaName == null) ? asName.replace("_", "$") : javaName; } public static function getFromServer (javaName :String) :String { - var asName :String = (_fromServer.get(javaName) as String); + var asName :String = (_fromServer[javaName] as String); return (asName == null) ? javaName.replace("$", "_") : asName; } public static function addTranslation (asName :String, javaName :String) :void { - _toServer.put(asName, javaName); - _fromServer.put(javaName, asName); + _toServer[asName] = javaName; + _fromServer[javaName] = asName; } /** A mapping of actionscript names to java names. */ - protected static var _toServer :HashMap = new HashMap(); + protected static var _toServer :Dictionary = new Dictionary(); /** A mapping of java names to actionscript names. */ - protected static var _fromServer :HashMap = new HashMap(); + protected static var _fromServer :Dictionary = new Dictionary(); // initialize some standard classes addTranslation("Object", "java.lang.Object"); @@ -60,6 +60,7 @@ public class Translations addTranslation("com.threerings.util.langBoolean", "java.lang.Boolean"); addTranslation("com.threerings.util.Byte", "java.lang.Byte"); addTranslation("com.threerings.util.Integer", "java.lang.Integer"); + addTranslation("com.threerings.util.Long", "java.lang.Long"); addTranslation("com.threerings.util.Float", "java.lang.Float"); } }