As3:flash the best plan for making a big head sticker

Source: Internet
Author: User
Tags new features

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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.