Browse Source

added registerClassAlias

Nicolas Cannasse 16 years ago
parent
commit
3530858e9f
1 changed files with 7 additions and 0 deletions
  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 ) {
 	public static function connect( nc ) {
 		return new AMFConnection({ cnx : nc, error : function(e) throw e },[]);
 		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
 	#end
 
 
 }
 }