I go back to a data processing class which I wrote several weeks ago.
DataMix is a data processing class from MovieClip forms converted into BitmapData
and from the BitmapData you can easily use for different purposes such as conversion into the image, block images or use them for MovieMix, MoviePix.
![]() |
| This is a general model of transition. |
![]() |
| The blocks of images |
Demo:
//mc as MovieClip
var dx:DataMix = new DataMix(mc);
var zip:ASZip = new ASZip(CompressionMethod.GZIP);
for (var i:int = 0; i < dx.length; i++) {
var bytes:ByteArray = PNGEncoder.encode(dx.data[i]);
//zip.addDirectory ("pics/");
//zip.addFile (bytes, "pics/F1_"+i+".png");
zip.addFile (bytes, "F1_"+i+".png");
}
var file:ByteArray = zip.saveZIP ( Method.LOCAL );
var fr:FileReference = new FileReference();
fr.save(file, "pics.zip");
![]() |
| you've got a useful tool! |
Reference:
DataMix Wiki
As3ZIP Lib 2.0
Codeazur with fzip



0 comments:
Post a Comment