PDA

View Full Version : I'm so stupid. Please help. :)



FirstClassJO
December 17th, 2002, 11:03 PM
I need to be able to create a flash movie that allows me to step through it with a button.

For instance, a little opening shows, then a button comes up and when you press that button, you go to the next frame, to press another button to take you to the next frame, and so on and so on...

I put the button(s) on their own layer, and I had it working, but the first two buttons you had to press twice to get to the next frame, after that it worked fine.

Can anyone either point me to an easy way to do the button actions I want to do or show me how to do it on here? I feel like such an idiot. :)

Thanks in advance,
Jeff

lostinbeta
December 17th, 2002, 11:23 PM
Well what code are you currently using? To get to the next frame you could just do this....

First... add a stop action to every frame you want your button to stop at (so if you are stepping by 1 frame and have 5 different keyframes, add a stop() action to those frames).


Next... apply this code to your button...


on (release){
prevFrame();
}


on (release){
nextFrame();
}

I am pretty confident you can figure out which code is used for a back button and which code is used for a forward button.

FirstClassJO
December 18th, 2002, 09:28 AM
Thank you!

For whatever reason I was getting messed up with instance names. I left it in expert mode and I think that's why.

Thanks again.

lostinbeta
December 18th, 2002, 12:56 PM
I am I glad you got your problem solved :) (If you did get it solved).