Now press "Ctrl+Enter" to test the movie. You can see that the color of the rectangle changed to blue. Create new layer, name it "button2" then draw rectangle shape with the black background inside new layer and convert it to button. Make the label for that button: "Click here to change to black"
Add the following Action script code to the button:
on (release)
{
colorchange = new Color("/rectangle");
colorchange.setRGB(0x000000);
}
Press "Ctrl+Enter" to see the movie. Play with the buttons. If you would like to make other colors then change YourRGBValueHere to any RGB digits in the 4th line of the code: colorchange.setRGB(0xYourRGBValueHere)
We hope the information helped you. If you have any questions
or comments, please don't hesitate to post them on the
Forums section Submit your Tutorial at Click Here