read object from compressed file that generate from actionscript3
Posted
by
Last Chance
on Game Development
See other posts from Game Development
or by Last Chance
Published on 2012-10-21T11:44:52Z
Indexed on
2012/10/21
17:20 UTC
Read the original article
Hit count: 235
actionscript-3
|python
I have made a simple game Map Editor, and I want to save a array that contain map tile info to a file, as below:
var arr:Array = [.....2d tile info in it...];
var ba:ByteArray = new ByteArray();
ba.writeObject(arr);
ba.compress();
var file:File = new File();
file.save(ba);
now I had successful save a compressed object to a file. now the problem is my server side need to read this file and decompress get the arr out from file, then convert it as python list.
is that prossible?
© Game Development or respective owner