Nicolas Cannasse 18 سال پیش
والد
کامیت
89291c17dc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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