PDA

View Full Version : Changing Colors Using ActionScript - change rollOver to click



Rushd
May 14th, 2009, 05:32 PM
Hi I followed the Changing Colors Using ActionScript and understand how it works, but I want to have the color stay changed until I click on another button. I also want to have one set of buttons for one shape and another set for a 2nd shape and a 3rd set for a 3rd shape. Do I just recopy the script substituting different shape names? By the way I am really new to flash and actionscript.
TIA
Rush:hugegrin:

Rushd
May 14th, 2009, 06:26 PM
GOT IT!!! had to go back about 10 pages and look at all the button type questions, but found it. Just substitute press for rollOver.

on (press) {
var colorful = new Color("_root.square");
colorful.setRGB(0xc4f7ff);
}