Welcome to this tutorial about changing background colors. Although this topic is covered by the Flash help files, I thought it could use some explanation. Note that you also can use this method to change the color of any movieclip (that's what we are actually going to do).
For this tutorial you need to have some basic Flash 4 knowledge and some affinity with the Flash 5 "look and feel".
For changing colors we are gonig to use the setRGB method. This method uses hexadecimal colors. Hexadecimal colors are constructed with 6 digits (RRGGBB) corresponding with the amount of red, green and blue, the primary colors of light. The amounts are set by the numbers 0-9, F for full and C is (probably, I'm not entirely sure) half. So (0x)000000 is black, (0x)FFFFFF is white, (0x)FF0000 is red, and so on. For determing the hexadecimal color value you can use your eye dropper tool and read out the color value in the palette.
This tutorial will cover this topic in three basic steps; Making and naming a movieclip, creating buttons and adding the actionscript.
|» Level Intermediate|
Rating: 6.88 Votes: 98
|You might have noticed, english is not my mother language. Therefore I hope that this tutorial will be understandable to you all. If you might have any questions on this subject, feel free to mail me !|
|Download the files used in this tutorial.|
|Download (21 kb)|
|More help? Search our boards for quick answers!|