Browse Source

This should certainly be a function call.

Bruno Garcia 12 years ago
parent
commit
a7e34d1720
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/remoting/FlashJsConnection.hx

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

@@ -142,7 +142,7 @@ class FlashJsConnection #if flash implements AsyncConnection implements Dynamic<
 	static function flashCall( flashObj : String, name : String, path : String, params : String ) : String {
 		try {
 			var fobj : Dynamic = untyped window.document[flashObj];
-			if( fobj == null ) fobj = untyped window.document.getElementById[flashObj];
+			if( fobj == null ) fobj = untyped window.document.getElementById(flashObj);
 			if( fobj == null ) throw "Could not find flash object '"+flashObj+"'";
 			var data = null;
 			try data = fobj.flashJsRemotingCall(name,path,params) catch( e : Dynamic ) {};