[haXe] ScreanweaverHX list folders and files + separator
Nicolas Cannasse
ncannasse at motion-twin.com
Mon Dec 10 10:18:29 CET 2007
> I have a few basic questions:
>
> 1: I try to find how to list folders or files in a given path and get an
> array of strings as a result, but unfortunately I don't know where to look
> for that...
> Any idea?
neko.FileSystem.readDirectory
> 2: File.separator? Adobe AIR has this to manage separators in paths which
> are different between MAC and PC. So constants are used, and AIR manage it
> depending on the current system. Is there something similar in SWHX? Or
> should this be done manually?
You can use "/" everywhere, it's correctly working on all Windows
systems as well. You can also use neko.Sys.systemName() which will
return either "Windows" or "Mac".
> 3: generally speaking:
> I remember having read that some swf2exe software claim to be partially
> legal, because they embedd the Flash ocx into their projector without having
> a license or rights from Adobe (Macromedia at the time I read that), some
> other claim to be officially licensed and give the right to deliver
> commercial projects.
> I wonder if there's any legal issue using SWHX for commercial projects for
> example because of the way the flash player is embedded?
The Flash Player is not embedded, it's by default automatically
downloaded if it's not already installed for Firefox. Some users have
been raising possible issue since SWHX doesn't display the EULA, but
this behavior can be easily modified.
Best,
Nicolas
More information about the Haxe
mailing list