Explorar o código

added registerClassAlias

Nicolas Cannasse %!s(int64=16) %!d(string=hai) anos
pai
achega
3530858e9f
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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
 
 }