View Full Version : a simple question
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... ;)
ok - have worked out how to change alpha using on release command is this the best way to achieve this?
Thank you for your prompt reply....
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.
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.