Browse Source

flash9 fix

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

+ 1 - 1
std/haxe/remoting/Connection.hx

@@ -145,7 +145,7 @@ class Connection implements Dynamic<Connection> {
 	static function __init__() {
 	#end
 		#if flash9
-		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
+		function() { try flash.external.ExternalInterface.addCallback("remotingCall",doCall) catch( e : Dynamic ) {} }();
 		#else flash8
 		flash.external.ExternalInterface.addCallback("remotingCall",null,doCall);
 		#end