If you are writing a new application, or are considering moving a legacy application across to the newer version, check out the repository here: https://github.com/haxeui/haxeui-core
First install haxeui & haxeui-file-dialogs via haxelib:
haxelib install haxeui
haxelib install haxeui-file-dialogs
Once installed add
<haxelib name="haxeui" />
<haxelib name="haxeui-file-dialogs" />
to your openfl application.xml.
At present only two dialogs are included:
File open dialog:
FileDialogs.openFile({ dir: "C:/Temp", filter: "All Files:*.*;Text Files:*.txt;Images:*.png,*.jpg,*.bmp" }, function(f:FileDetails) {
trace("Open file: " + f.filePath);
});
File save dialog:
var details:FileDetails = new FileDetails();
details.contents = "Some text";
FileDialogs.saveFileAs( { dir: "C:/Temp", filter: "All Files:*.*;Text Files:*.txt;Images:*.png,*.jpg,*.bmp" }, details, function(f:FileDetails) {
trace("Saved file: " + f.filePath);
});