Flash 8: Change Movie Background Color

August 18th, 2005 by Luis

Until now in order to change the background color of a Flash Movie dinamically you could fill the viewable stage using the Drawing Api or simply create a MovieClip at the bottom of your content and change its color.

Now Flash 8 supports a new property called opaqueBackground which turns the background of the MovieClip to an opaque color.

Considering the timeline as a movieclip you can change the background color of the movie with just two lines of code using the opaqueBackground property.

See example here.

Via IFBIN blog.

2 Responses to “Flash 8: Change Movie Background Color”

  1. Paul Neave Says:

    That is so useful - something I submitted to the MM wishlist was to be able to change the background colour dynamically, but they’ve added it to every MovieClip. Superb!

  2. Guy Watson Says:

    It is actually classed as a performance feature as it was added to the player so that you could remove the alpha channel data from a movie clip to speed up the rendering.

Leave a Reply