Browse Source

flash9 support.

Nicolas Cannasse 19 years ago
parent
commit
e779c4afaf
1 changed files with 4 additions and 0 deletions
  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
 	#if flash
 
 
 	static function __init__() {
 	static function __init__() {
+		#if flash9
+		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
+		#else true
 		flash.external.ExternalInterface.addCallback("remotingCall",null,doCall);
 		flash.external.ExternalInterface.addCallback("remotingCall",null,doCall);
+		#end
 	}
 	}
 
 
 	public static function jsConnect() : Connection {
 	public static function jsConnect() : Connection {