I was wondering if it’s possible to have a button stay in the down state when a user clicks on it?
I’ve read that this is usually accomplished by replacing the button with a movie clip, but I’d rather not do that if possible as I’m on a deadline which is fast approaching.
So far I have a button with all states set with a gfx. I have named the but “but2”. I have placed the following code in a new layer, in the same frame as the button.
but2.onRelease = function () {
gotoAndStop(“hit”);
};
I read that this should make the button stay in the hit state on release. Only problem is it doesn’t seem to work!
on your up state, make your graphic a movie clip with 4 frames, one your original up state and the third and fourth with your down state graphics…
on frame 1 you want this AS