Assignment:
Original Tutorial:
The original tutorial that I used for this assignment was
"Changing colours using ActionScript". The tutorial was very easy to follow as it went through step by step guidelines to show you how to create a roll over mouse effect to show different colours appearing on a cascade of movie clips. It gives a file at the end of the tutorial and the sets of code you would need to enable a roll over colour effect when the mouse pans over a set of square buttons. The coding works in a simple way:
on (rollOver) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x006699);
}
The first line of the code shows that the following code will happen only when a mouse is hovering over the certain button. In the next line the code is telling flash to create a new colour object based on the movie clip "shapes". The final line shows the chosen colour value, this code changes for each colour button. Each colour has a specific hexadecimal value which is unique.
My Finished Version:
No comments:
Post a Comment