Hello,
I don’t really know how to compose this question, bear with me…
Here is the code that I am using right now. Works fine. When the button has been selected I would like the button to reflect that selection with a color change. In other words remain highlighted.
EDIT: this would be the “down” state if you were to use a button symbol.
Thanks,
Ponyack
// text formatting
// default text style
textStyle = new TextFormat();
textStyle.color = 0x000000;
// rollover style
rolloverStyle = new TextFormat();
rolloverStyle.color = 0xFF0000;
btn.onRollOver = function(){
// change Services text color to red
btnLabel.setTextFormat(rolloverStyle);
}
btn.onRollOut = function(){
// change Services text back to black
btnLabel.setTextFormat(textStyle);