Page 1 of 1

Flash: Active Button Color

Posted: Thu Sep 25, 2008 8:04 pm
by psurrena
Hello,

I think I have a simple question. The script below is what I use for buttons on a menu. How can I make it stay the rollon color after it's clicked and then the rolloff color when another button is clicked? Thank you in advance.

[js]     rollon = "0x0099FF";    rolloff = "0x333333";     b_projects.onRollOver = function(){            projects_txt.textColor=rollon;    }    b_projects.onRollOut = function(){            projects_txt.textColor=rolloff;    }    b_projects.onRelease = function(){            getURL("work.html");    } [/js]