Thursday, August 18, 2005

Flash® 8 - MovieClip.opaqueBackground Example

MovieClips in Flash® Player 8 support a new property called opaqueBackground. When set to a numeric value, it turns the background of the MovieClip to an opaque color. The example requires Flash® 8 Beta Player.


Set the TextField to a hex value to change the opaqueBackground color.

Prior to this you needed to add another MovieClip as a child and resize it to provided a background color for any clip. This is very useful when you want to provide a background color to a clip being used as a container. Combined with the new scrollRect property, this is a powerful combination for sizing and coloring containers in component applications.

This example will ship with full source and documentation within Flash® by Example.

More to come,

Ted ;)

0 Comments:

Post a Comment

<< Home