Actionscript Button Color

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

05-Dec-05 18:05
Here is a thing I want to do with flash and I think I need to use actionscript to do this.

When I click on a button I want that the buttons color change.
06-Dec-05 12:46
I've figured some how already.

How can I write this code shorter???
on (press) {
var colorful = new Color("_root.c");
colorful.setRGB(0xFFCC00);
var colorful = new Color("_root.e");
colorful.setRGB(0xFFCC00);
}

I couldn't figure out how to write "_root.c" and "_root.e" next to each other.

 
New posts
Old posts

Follow Elated