Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
Posts: 2,246
|
Originally Posted by stillt
hey guys, basically i want to put a simple button on a flash project, when clicked (and not before) moves you onto the next keyframe...
cheers
|
there's 2 ways to do it.
- open actions panel (F9), type 'stop()';. this stops the movie from playing past the current frame (frame 1)
- make your button - make sure it's a button symbol and not a movie clip/graphic.
- option 1: apply the actions diretly on the button - select the button, in the actions panel type:
on(release) {
gotoAndPlay(#ofthenextframe);
}
- option 2: apply the actions to the frame - assign the button an instance name via properties panel, type:
instancename.onRelease = function() {
gotoAndPlay(frame#);
}
|