[haXe] SWHX and fscommand

Sönke Rohde mail at soenkerohde.com
Mon Aug 21 16:16:29 CEST 2006


> There's a small sample on haXe-AS communications via fscommands at:
> http://haxe.org/swhx#swhx_for_actionscript
> 
> For more elaborate communications, you'd best use the swhxflash API 
> (https://svn.motion-twin.com/haxeDesktop/swhx/api/swhxflash

Are this synchronous calls and why is FSCommand instead of ExternalInterface
used?
This is the way I do it currently in a project which is wrapped by .NET/c#.
I have written a little API for the the -NET calls like e.g.

public static function copy(fileUri:String, copyUri:String,
overwrite:Boolean):Boolean{
	fileUri = StringUtils.replace(fileUri, "\\", "/");
	copyUri = StringUtils.replace(copyUri, "\\", "/");
	var o:Object = ExternalInterface.call("FileAPI.copy", fileUri,
copyUri, overwrite);
	trace("i result " + o);
	return Boolean(o);
}

Sorry, if am in the completly wrong road ...

Cheers,
Sönke




More information about the Haxe mailing list