Disable buttons in over state

hey guys,

I have a group of buttons each with upstates/overstates/downstates.

when a user clicks one, i want it to be disabled. no problem.

however, i want to disabe it, but have it be stopped in the over state, so you know which button is disabled, and where you are.

umm, if that makes no sense, check out the buttons at http://www.internettinyawards.com.

when you hover over them the animation plays, when you click it the animation stays visible.

thanks for the help!

  • gabe

Have your over state be a movie clip.
Have it loop over and over or put a stop action at the end.
If that doesn’t work, use a movieclip and code it like a button. There’s plenty of info with the handy “search” button.

Cheers,

–EP

ok, my over state is a movieclip, but that stops playing when the mouse is no longer ‘over’ (obviously).

I would like it if the button acted like the ones in the link i provided above. The over state plays when the mouse is over, then when clicked, it stays in over state even when the mouse leaves the button.

any help would be much appreciated.

ps - your witty comment about the ‘search’ button did not help

  • gabe

if i didnt understand wrong, just put stop.

Or send the file and we can have a look

i put a stop in the animation that plays in the ‘over’ state, but when the mouse leaves the button, it plays the ‘up’ state.

ok, here is a quick example i made (it looks really crappy)

when you click one button, that button is disabled, but the other is enabled.

once clicked, i want the button to stay yellow until the other button is clicked.

i hope this makes more sense

thanks

  • gabe

Gabe, i have a question for you. How did you get it so that when you click on a link it loads the appropriate movie inside the whole thing? I’ve been wondering how to do that for a while.

Nemonin,

not to sound like a jerk, but

  1. I don’t know what you are asking
  2. I have been trying to find an answer to my question for 3 days and no luck

if you start a new thread, and clearly state your problem, I would be happy to try and help :slight_smile:

ps - if anyone knows how to help me, plz post

Make your buttons movie clips.
Add a “_disabled” state to the standard _up _over _down
send to this state (goto)

thanks for posting eyezberg.

I think I understand what you are saying, but don’t know how to actually code this to get it to work.

I have attached another simple fla, if you can, let me know if i am on track or not, and what i have to add to get this to work.

thanks!

I worked this up for ya and it’s probably a bit clumsy the way I coded each btn to reset the others (instead of a catch-all function)…

…but it works…

cheers

Just put each button on a seperate movie clip. Inside the movie clip, have keyframe 1 (with a stop(); action) have the actual button. Then hit F6. Go back to keyframe 1 and make it so that when the button is pressed, make it gotoAndStop at keyframe 2. On keyframe 2, select your button and press ctrl+b over and over until the button is fully broken. Test. :D.

thanks RelandR!

I belive this is exactly what i was looking for. I’ll play around with it tomorrow.

A ‘catch-all’ functions sounds intriguing as well. This would involve an array?

I guess that would be a different thread for a different day :slight_smile:

thanks again

NP… :slight_smile: