Flash set background code for movie clips

Source: Internet
Author: User
Tags set background

Create a new Flash document named Background.fla.
Draw a blue circle on the stage.
Select the Painted blue circle and choose Modify > Convert to symbol.
Select the movie clips option, and then click OK.
Select an instance on the stage, and then type MY_MC in the Instance Name text box in the property inspector.
Select Frame 1th in the timeline, and then type the following code in the Actions panel:/* If Cacheasbitmap is set, the internal bitmap is opaque and can be rendered more quickly. */
My_mc.cacheasbitmap = true;
My_mc.opaquebackground = 0xff0000;


Select Control > Test movie to test the document.
The movie clip will appear on the stage with the background as the color you specified.

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.