OpenFL. What's the best way to work with Filesystem (read/write files and zip-archives)?

599 views
Skip to first unread message

Roman O.

unread,
Nov 11, 2014, 6:39:43 AM11/11/14
to haxe...@googlegroups.com
Hello guys,

I'm making an app with OpenFL + Haxe. It will target windows + flash probably (but not necessary, may be flash as AIR-app if windows version fails). Currently I develop and test UI as flash-app.
The app would have to work with filesystem, read and save files, pack a zip-archive etc.

What would be the best practice here?
I see that OpenFL has openfl.filesystem.File class. I also see there's sys.io package in Haxe.There are some other libs.
I'm confused and would like to ask anyone with the experience to give me any adive here.
Thank you.

Mark

unread,
Nov 11, 2014, 7:42:28 AM11/11/14
to haxe...@googlegroups.com

Roma Oskolkov

unread,
Nov 12, 2014, 4:29:43 AM11/12/14
to haxe...@googlegroups.com
Thanks!

But I still have unclear things.

What is the difference between haxe.io  and sys.io packages?

What is the equivalent of FileReference.browse?


Roma Oskolkov

unread,
Nov 13, 2014, 11:05:10 AM11/13/14
to haxe...@googlegroups.com
Has anyone worked with systools library?
I don't understand how "saveFile" method works.
It has 4 arguments, and none of them concerns the real data I want to write down.
How do I pass the bytes?
weird.

Roma Oskolkov

unread,
Nov 13, 2014, 11:09:10 AM11/13/14
to haxe...@googlegroups.com
Oh I get it, it doesn save it only opens the dialog window. All right

Mark

unread,
Nov 14, 2014, 4:32:56 AM11/14/14
to haxe...@googlegroups.com
what I do in these cases is go to [haxe install folder]\std\haxe\io and sys\io and look up & check the source files.

if you do this too, you'll get a very clear answer to your question ;)
Reply all
Reply to author
Forward
0 new messages