浏览代码

flash9 support.

Nicolas Cannasse 19 年之前
父节点
当前提交
e779c4afaf
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 {