Forum Topic: on key press "b" go to frame 1

(352 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

newgiez

Reply To Post Reply & Quote

Posted at: 1/14/08 11:04 PM

newgiez LIGHT LEVEL 10

Sign-Up: 04/18/07

Posts: 739

on key press "b" go to frame 1
how do i do it in AS2?

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@!@

BBS Signature

None

Drkgodz

Reply To Post Reply & Quote

Posted at: 1/14/08 11:13 PM

Drkgodz DARK LEVEL 09

Sign-Up: 08/26/06

Posts: 30

if(Key.isDown(66))
{
      gotoAndStop(1);
}

None

PyroflameGames

Reply To Post Reply & Quote

Posted at: 1/14/08 11:15 PM

PyroflameGames NEUTRAL LEVEL 09

Sign-Up: 08/04/07

Posts: 1,969

Put this on the main timeline.

function onEnterFrame (){
if (Key.isDown(Keycode)){
gotoAndStop(1);
}
}

4 in 5 people found this post helpful, did you? Yes | No

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 08:02 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!