Hello Liberado,
When you use the FileOpen and replace the load trigger into saveimage trigger and make this code in the trigger event:
(_Image is a block like set Image to [image from [self])
var bitmapdata=_Image;
var b:haxe.io.Bytes = bitmapdata.encode("png", 1);
var filename:String=Sys.getCwd()+_Separator+"MyTest.png";
trace("Saving to : "+filename);
var fo:sys.io.FileOutput = sys.io.File.write(filename, true);
fo.writeBytes(b, 0, b.length );
fo.close();
Flash will not allow it.
Android/ios security issues as well. Maybe in local but that is not what you are after I guess.
Worked on Mac OSX and Windows.
Either way the upload works for all targets and is what I’m aiming for since it is platform independent and acts like a repository for my game(s) that is device-independent.
Hope this helps in saving to native!
Best regards from
M.E.