Tips for using bitmaps in Flash

Source: Internet
Author: User
Skills

Now many teachers like to use flash to make courseware, and graphics are essential elements in the production process. We generally use the imported bitmap directly, but we ignore many problems in the course of using. Because after all, Flash is a vector based graphics software, processing bitmaps is not its strong points, the misuse of bitmaps is likely to bring hidden dangers to your files. such as file increase, Run-time bitmap dislocation, jitter and so on. Therefore, it is necessary to master some methods and techniques of using bitmaps in order to eliminate hidden dangers.
1. You should use other graphic editing software to edit the bitmap to be imported into flash before importing it (or you can edit it in Flash). After you have edited it, export it as an image, and then re-import it into your project file, so that the imported picture is the size of the final use in Flash. Because if you import a large bitmap, and then cut, zoom, and other operations, even if only a small portion of the bitmap, the size of the final file will not change any. You can test it yourself to confirm this: Create a new Flash file, import a bitmap, place it on the stage, and press "Ctrl+enter" to test the movie. If you have not turned on the bandwidth Profiler (bandwidth meter), press "Ctrl+b" to open the bandwidth meter and view the file size, and then close the Test window. Select the bitmap on the stage, press "Ctrl+b", break the bitmap, and then shrink, trim, and so on. Test the movie again and look at the file size, and you'll find that the file size is exactly the same as the first Test, and no expected reduction occurs.
2. Bitmap import, if you just use it as a background, do not require a high display quality, you can consider converting bitmaps to vector graphics, you can usually reduce the size of the file. However, if you need a high quality of display, it is best not to convert, because the converted vector map is probably much larger than the original bitmap, and there will be a very long conversion process. There is also a more primitive way, is to manually map the bitmap in Flash, so that you can get the smallest file size and fastest running speed. But it takes a lot of patience and a lot more time, and requires an image that's not complicated.
3. It is best not to perform alpha frame animation on top of the bitmap, shape complement frame animation, gradients, masks, and so on, such a combination of visual effect is really good, but will seriously consume system resources (you can use CPU monitoring software to verify this, you will find that this combination of the CPU is very high occupancy rate). If you really want to use this effect, it's a good idea to set the following points:
(1) Set the x and Y coordinates of the bitmap on the stage as integers.
(2) Open the Bitmap Properties dialog box in the library to remove the "Allow smoothing (Allow smoothing)" option.
(3) Where the alpha value is set to 100% and 0%, it is changed to 99% and 1%.
4. Change the default compression ratio of the flash to the bitmap. Local compression for each bitmap: In the library, double-click the bitmap that you want to modify the compression ratio, open the Bitmap Properties dialog box, and cancel the use document default Quality (using imported JPEG data), and then change the default display quality. Finally, make a global compression of the bitmap when you publish the movie: Press the "CTRL+SHIFT+F12" combination to open the Publish Settings dialog box, and change the value of the JPEG quality (which is, of course, a minor change). Change the compression ratio setting to test several times to find a balance between the quality and file size.


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.