Tabbers-Be Gone

12 posts

Flag Post

How do I make it so that if I press tab,it goes to frame 9?

 
Flag Post

Are you trying to prevent people from tabbing through clickable elements?

You can do something along the lines of “showBoundingRect = false” or something like that. Can’t remember the exact function.

But to answer your question, you’ll have to use a looping frame to check if Key.isDown(Key.TAB);

 
Flag Post
if (Key.isDown(Key.TAB) {
gotoAndPlay(9);
}
 
Flag Post

If you put everything in a movie clip, nothing is tabable. And you can’t use (play) to cheat.

 
Flag Post

Jude,when I use that code,I get the following error

‘)’ expected
if (Key.isDown(Key.TAB) {

@ yrudoy I have a custom menu,you can’t use anything but Flash Settings

 
Flag Post

Jude forgot another “)” after the if statement.

 
Flag Post

Ah, so it’s

#if (Key.isDown(Key.TAB)) {
#gotoAndPlay(9);
#}

Thanks for your help everyone!

EDIT: Errr…why is it not working?

 
Flag Post

Oops. Wasn’t paying attention to syntax :P

Thanks, arcaneCoder :D

@SevereFlame: It should work…

 
Flag Post

Are you using AS2 or AS3?

 
Flag Post

AS2. Many of the scripts I steal off the internet don’t work with AS3 (lol?)

 
Flag Post

Because it’s pretty new.

Does the frame 5 have any animation? If it’s just one frame that says “GAME OVER”, put a stop(); on that frame.

 
Flag Post

….

Holy,…I..
I didn’t realize that it didn’t say gotoAndStop.

Thanks for all your help.

But,…I AM supposed to put it in the actionScript of the first frame right?