I have a button that when clicked once reaveals a portion of an image and when clicked again covers the image back up. That part is working. Now I need the text on the button itself to toggle from saying “show” to “hide”. I am thinking that I can do this on the timeline of the button itself.
I have the myButton.gotoAndStop(“framelabel”) on the main timeline. But I get the following error. Can I control the timeline of a button, basically telling the button to act as if the mouse click is being held down?
1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:SimpleButton.