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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button states

Status
Not open for further replies.

brainpudding

Technical User
Sep 29, 2002
84
US
Hey its me again, i got a new one , i have a button made and placed several instances on the stage. I am going to make the first frame of the button contain a movie with 2 frames. frame on is normal and frame to will be the one displayed if you are at that page. my question is on the code to make it change it to frame 2 on the click and change all others that have been changed back to frame 1
 
on (release) {gotoAndPlay (scene number)};

Put stop(); actions on the frames to stop it moving on.

sooo each click makes the movie jump to the frame you want it to
 
i understand that part but say i went to downloads page.. so the button is a diff frame .. then i click on the link button .. i need the download one to go back to original state
 
if each button is on a separate layer, then, for a given frame, you only have that button state changed.. all other frames have the 'up' state in them.

 
you could try giving them all names you can loop through (e.g. button1, button2 etc) and then with script loop through and put them all back to frame 1 then put only the one you want to frame 2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top