Browse Source

fixed fscommand

Nicolas Cannasse 17 years ago
parent
commit
d99e0df069
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/flash9/Lib.hx

+ 2 - 2
std/flash9/Lib.hx

@@ -60,8 +60,8 @@ class Lib {
 			(cast f)(url,target);
 	}
 
-	public static function fscommand( cmd : String, ?param : Dynamic ) {
-		untyped __global__["flash.system.fscommand"](cmd,param);
+	public static function fscommand( cmd : String, ?param : String ) {
+		untyped __global__["flash.system.fscommand"](cmd,if( param == null ) "" else param);
 	}
 
 	public static function trace( arg : Dynamic ) {