Tabbers-Be Gone

Subscribe to Tabbers-Be Gone 12 posts

avatar for SevereFlame SevereFlame 4243 posts
Flag Post

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

 
avatar for dazzer dazzer 724 posts
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);

 
avatar for JudeMaverick JudeMaverick 8844 posts
Flag Post
if (Key.isDown(Key.TAB) {
gotoAndPlay(9);
}
 
avatar for yrudoy yrudoy 340 posts
Flag Post

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

 
avatar for SevereFlame SevereFlame 4243 posts
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

 
avatar for arcaneCoder arcaneCoder 2354 posts
Flag Post

Jude forgot another “)” after the if statement.

 
avatar for SevereFlame SevereFlame 4243 posts
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?

 
avatar for JudeMaverick JudeMaverick 8844 posts
Flag Post

Oops. Wasn’t paying attention to syntax :P

Thanks, arcaneCoder :D

@SevereFlame: It should work…

 
avatar for facelesscoward facelesscoward 156 posts
Flag Post

Are you using AS2 or AS3?

 
avatar for SevereFlame SevereFlame 4243 posts
Flag Post

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

 
avatar for JudeMaverick JudeMaverick 8844 posts
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.

 
avatar for SevereFlame SevereFlame 4243 posts
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?