Convert the shape you made to button. With the "Text Tool" make a text label for that button:"Click here to change to blue"
Select the button and add the following action script code to the "Action Panel"
on (release)
{
colorchange = new Color("/rectangle");
colorchange.setRGB(0x0000FF);
}
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"
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