Label

  • ActionScript 2
  • AD Player 2
  • Algorithm 2
  • AS3 16
  • Audio 1
  • Audio Description Player 1
  • Bitmap 1
  • BitmapData 1
  • Browser 1
  • C# Experience 4
  • Chart 1
  • Flash 10
  • Game 1
  • Geometry 1
  • JavaScript 2
  • Mathematics 6
  • Music Online 1
  • MVC 1
  • Performance 1
  • PureMVC 1
  • Slide 1
  • Talks 1
  • Tool 1
  • Tool Player 1
Toggle Side
Home   »   Flash   »   DataMix and useful apps - Part 1

DataMix and useful apps - Part 1

A colleague of mine was struggling with what to trial software that converts SWF files into a different picture. The purpose of this transformation is to find optimized solutions from the Vector Graphic to Bitmap. I asked him why did not write a small software to serve this purpose. Oh, I've forgotten he's designer.

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




Labels: AS3 ,  Flash   at:  3:15 PM     Email This BlogThis! Share to X Share to Facebook

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom)
© Hung Le 2007-2016. Powered by Blogger