Answered
Navigation status
I have several movie buttons. The active button is to have a
different color to let the user know where he is currently on the
site. Sounds easy right?
I tried this:
var activeButton:String;
buttonOne.onRelease = function():Void
{
[activeButton]button_txt.setTextFormat(normalButton_fmt); //reset previous button to normal look - failure
activeButton = this; //need this to control what button is active (orange) - success
this.button_txt.setTextFormat(activeButton_fmt); //set text to orange...success
<do something>
}
activeButton doesn't work. Is it because I data typed it as a string instead of a movieClip? Does anyone have any example of how they do this? I'm sure there is an easier way.
I tried this:
var activeButton:String;
buttonOne.onRelease = function():Void
{
[activeButton]button_txt.setTextFormat(normalButton_fmt); //reset previous button to normal look - failure
activeButton = this; //need this to control what button is active (orange) - success
this.button_txt.setTextFormat(activeButton_fmt); //set text to orange...success
<do something>
}
activeButton doesn't work. Is it because I data typed it as a string instead of a movieClip? Does anyone have any example of how they do this? I'm sure there is an easier way.