PDA

View Full Version : Removing Color



deland01
February 23rd, 2005, 03:17 PM
Ive got a button with black text that text fades blue on(rollOver) & I also have this script attached to the button.


on(press) {
myColor = new Color(this.servicesTxt);
myColor.setRGB(0x990000);
}
on(release) {
myColor = new Color(this.servicesTxt);
myColor.setRGB(0x000000);
}


Although the .setRGB turns the button text back to black the button text doesnt fade to blue.

How do I remove the .setRGB(0x990000); on(release) ???

senocular
February 23rd, 2005, 07:00 PM
see:
http://www.kirupa.com/developer/actionscript/tricks/colorobj.htm