Friends who are interested and have the conditions (installed the latest version of FlashPlayer8.5 and have a webcam) can first experience the FLEX2 I developed with the tip of the program:http://www.weni.cn/capture/
With the release of Flash8, the use of Flash8 bitmap processing new features to develop the application of the big-head sticker is more and more, the more prominent is Tencent's Qq-zone.
However, using Flash8 's AS2 to generate pictures and provide users with less efficient downloads, related bottlenecks and solutions in my blog (http://www.weni.cn/index.php?play=reply&id=57] ) has been introduced.
However, AS3 can solve a series of problems above:
1, AS3 can directly the interception of the bitmapdata generation of compressed PNG format file binary data, so the same size of the picture transmission of data can be reduced to only one of the original dozens of.
2, the background received data directly after the received data stored into PNG file can be (PHP as long as a line of code can be done), so that the efficiency of the background can be raised to the original number of times to N.
3, AS3 data processing speed is AS2 dozens of times times to a hundredfold, for example, the picture frame of the big sticker is grayscale gif, I use the BitmapData method to turn the frame white to transparent, the black part turns white, the color between black and white turns translucent color, so that the frame can be applied to the photo above, This transformation process I use AS2 to realize to spend 3-7 seconds of time, but with AS3 realization of words in a moment to complete.