PDA

View Full Version : a simple question


Jove
05-22-2001, 05:03 PM
I want to make a button change colour and stay that colour when it has been clicked once, am I missing something simple or would I need to use a little script for this??

Any help would be appreciated, thanks.

Geert
05-22-2001, 05:29 PM
You could do it without actionscript (gotoAndPlay...)
by letting the button refer to a frame where you put a button that's almost similar to the frame with the other button, but now you change the colors...??

maybe there is a way to do that with some AS, but I wouldn't now... ;)

Jove
05-22-2001, 05:31 PM
ok - have worked out how to change alpha using on release command is this the best way to achieve this?

Jove
05-22-2001, 05:33 PM
Thank you for your prompt reply....

Marx
05-22-2001, 05:41 PM
Hi..
Following on from Geert's excellent advice, heres a way to do it using code:

1) Place your button in a movie clip.
2) Add the script that changes the color:

on (release) {
s=new Color(this);
s.setRGB( 0x66FFFF );
}

Hope this helps.