Button.gotoAndStop()

Can you tell a button to gotoAndStop(2),or in other words gotoAndStop(over)?

It would be like you made a button a movie clip and had a command that told the movie clip to gotoAndStop(2).

You might be able to do something like instance.gotoAndStop(2)… not quite sure. What about just making the button a movie clip? You can get the same amount of options just like a button can.

-brad-:evil:

Ya I can, but right now that would require a lot of button changes to do what I want to do.

I don’t know. Did you try it? And why would you need to do that?

It does not work. My concept is this, when click a button it stays on the second frame of the button, this will show that is the last button you hit. It will look different than the rest of the button until I hit another button.

To my knowledge you need to put the button in it’s own movie and create two frames - one for the button and one for an instance of the button as a graphic. Then you can tell the movie to gotoandstop.

(note in the documentation - gotoandstop is a method of movies and not one of buttons!)

Would be a nice option if you could! :stuck_out_tongue:

Even if you set all buttons to inherit the methods of the MovieClip object, it won’t work. I don’t think Button object frames are recognized the same way MovieClip object frames are. Or maybe the fact that you aren’t hovering over the button ovverrides the goto method and takes the button right back to frame 1. Your best bet is to take tknapp’s suggestion.

-Al

WHen i had to indicate when button was clicked last i either use a movie clip as a button… or if i already have all the buttons … then i make a movie clip with the clicked state, give it an instance name and then use

on(press){
pressmc._x = 40;
}

same for _y if u need to… 40 is the location where hte button is placed.

I used that method in this
http://prettypolly.thedatacorp.com/
on the ENTER TO WIN form…
thats what i would do if u dont want to redo the buttons as MC’s

jakub