Flash: Active Button Color

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
psurrena
Forum Contributor
Posts: 355
Joined: Thu Nov 10, 2005 12:31 pm
Location: Broolyn, NY

Flash: Active Button Color

Post 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]
Post Reply