Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling a button

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I have a button on my movie and gave it an instance name. What I want is when it is clicked, to stay on the "over" state and when clicked again go back to the normal state. How would I do this?

Thanks.
 
You'll have to have another movie clip with the exact same button but in it's depressed state (appearance), and overlay this movie clip when the button is clicked. This should be done in conjunction with the use of a variable (button_depressed = true or false, for example) to toggle on and off the visibility of the depressed movie clip. In other words, each click toggles the other state in which the button is not! Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top