Added Log facilities like we're used to, and discovered a host of
new wacky things (and possible compiler bugs) on the way. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3888 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -7,6 +7,16 @@ public class ClassUtil
|
||||
return flash.util.getQualifiedClassName(obj).replace("::", ".");
|
||||
}
|
||||
|
||||
public static function shortClassName (obj :Object) :String
|
||||
{
|
||||
var s :String = flash.util.getQualifiedClassName(obj);
|
||||
var dex :int = s.lastIndexOf(".");
|
||||
if (dex != -1) {
|
||||
s = s.substring(dex);
|
||||
}
|
||||
return s.replace("::", ".");
|
||||
}
|
||||
|
||||
public static function getClass (obj :Object) :Class
|
||||
{
|
||||
return flash.util.getClassByName(getClassName(obj));
|
||||
|
||||
Reference in New Issue
Block a user