Browse Source

flash9 support.

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
e779c4afaf
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      std/haxe/remoting/Connection.hx

+ 4 - 0
std/haxe/remoting/Connection.hx

@@ -116,7 +116,11 @@ class Connection implements Dynamic<Connection> {
 	#if flash
 
 	static function __init__() {
+		#if flash9
+		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
+		#else true
 		flash.external.ExternalInterface.addCallback("remotingCall",null,doCall);
+		#end
 	}
 
 	public static function jsConnect() : Connection {