浏览代码

added registerClassAlias

Nicolas Cannasse 16 年之前
父节点
当前提交
3530858e9f
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      std/haxe/remoting/AMFConnection.hx

+ 7 - 0
std/haxe/remoting/AMFConnection.hx

@@ -90,6 +90,13 @@ class AMFConnection implements AsyncConnection, implements Dynamic<AsyncConnecti
 	public static function connect( nc ) {
 		return new AMFConnection({ cnx : nc, error : function(e) throw e },[]);
 	}
+
+	#if flash9
+	public static function registerClassAlias( s : String, cl : Class<Dynamic> ) {
+		untyped __global__[ "flash.net.registerClassAlias" ]( s, cl );
+	}
+	#end
+
 	#end
 
 }