00:00
00:00
Upgrade Your Account!

Hey! To start this decade right, we believe Newgrounds should be ad-free for EVERYONE. For this to work, we need people who have the means to become paying supporters. For just $3 per month or $25 for the year, you can help this happen and get some nice perks!

For the month of February we have disabled ads on all E-M content. We need 219 people to reach our goal of 3,100 active supporters. If we hit that, we'll continue with a new goal in March!

Please check out our Supporter Upgrade and consider coming aboard!

Frame Button Tutorial

Share Collapse

Author Comments

It took me a really long time to figure out how to make "next frame" and "previous frame" buttons, and I only got it by piecing together random bits and pieces of information from around the web. There really didn't seem to be a simple, all in one guide to doing this, so I figured I'd make one. I learned a lot about Actionscript while making this, and I had a lot of fun with it as well. Please recommend this for the Tutorial Collection

Even though there is Actionscript text you can copy and paste, I recommend you try typing it out yourself at least once so that it sticks.

This tutorial assumes you have basic flash skills, such as creating symbols or making multiple frames.

If anything seems unclear or strange, tell me in a review and I'll do my best to clarify in a response or by editing the tutorial.

Log in / sign up to vote & review!

Newgrounds accounts are free and registered users see fewer ads!

Decent.

But I have to say, the music you chose has been way overused. As of now, it's in 172 entries, including this one. I'd like to hear some variety at Newgrounds. The tutorial is very well made, perfect for beginners, so good job on that. The music is much to be desired though.

Elroy responds:

I know, I was actually hesitant to use it, but there wasn't a lot of other free "elevator-ish" music out there on the web. I actually tried to make a mute button, but couldn't figure out how :P

Just... Button?

But it's still okay nonetheless.

Is that Flash CS3 or CS4?

Elroy responds:

I use CS3, but I'm fairly certain CS4 is AS2 compatible.

Basic but OK

It's overdone. All you have to do is one your next button

on(release){
nextFrame();
}

and on your back button

on(release){
nextFrame();
}

That's pretty much your whole tutorial in one. Although it is v.good for beginners and currentframe is extremely useful for game coding.

~C

Elroy responds:

Thats true, you could use that code. I wrote the tutorial to help people who may not have a lot of experience with actionscript.

I chose to use the code I did, because if you apply common sense to it, you can use that code for a ton of different things, sort of like a little intro to actionscript.

Also, how will the same code do two different things?

It looks nice, but it's not efficient.

Your way is way too complicated (relatively, of course). There are much better ways to perform the same task. Anyway, it looked a lot nicer than some of the other tutorials I've seen.

And by the way, next time you make a tutorial, make it something new. Do you know how many button tutorials there are out there? Don't make stuff just to have another submission and good score. Make stuff to share your knowledge with other people. Make stuff for fun, not scores.

Elroy responds:

I had a lot of fun making this. The nice score is just a bonus in my view. I expected to get like, a much lower score.

-_-"

that's very stupid.
well, you can just do:

_root.nextFrame();

or:

_root.prevFrame();

so your way is stupid to do.
anyway, i think you did this tut. in about 5 minutes.
look , it's nice but i don't think i deserves a better grade.
but still it's nice (i have no idea how to do the textbox that you can copy for eg.)