what is best method to store multiple images (layers) , so user can read(load) again and continue work.
- currently doing this – each layer is stored as png file. with one text file
contain all layers name etc - create one big png file, put all data in it as tiles. read tiles while loading..
- create some custom format.
ideally, i wanted to implement c. but i need some guidance about where to start from.
my mind always tells me that, logically it should be simple as..
psudo code
layer 1 name, layer1 resolution
layer 1 png data (using png encoder for my bitmapData)
layer 2 name, layer2 resolution
layer 2 png data (using png ecncoder for my bitmapData) etc.
and so on….
but i never ever find a good starting point. this byte array always confuses me.
any one can guide me towards some steps about how to start. or
some logical flash / flex sample doing same would be of great help.
thanks for your time reading and huge thanks again for helping me. great community here..
If you are afraid of byteArray, you can do your first solution but storing all files into a Zip file. It will be nice because you can view Zip simply and all files are packaged into one file.
There is several library in As3 for Zip format :