소스 검색

flash9 fix

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