Hi
here is the code that I am using on my button. It works fine but what I would like to happen is when you click the button the text stays highlighted
Code:// 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); }


Reply With Quote