00:00
00:00
Newgrounds Background Image Theme

Breakfast-Crow just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Code issue with AS3

316 Views | 1 Reply
New Topic Respond to this Topic

Code issue with AS3 2014-10-22 09:03:28


I want to be able to press any key on my keyboard so as to appear to be typing my specific text. No matter what key is pressed, the same scripted text appears, letter by letter(one per keystroke)/frame by frame. Can anyone help me here? As it stands, my animation just continues to loop unless I hit enter (then it stops until pressed again.)

stop();

var keyList:Object = new Object();
keyList.onKeyUp = function () {
nextFrame();
}
Key.addListener(keyList);

stop();
Using Flash cc-thanks

Code issue with AS3

Response to Code issue with AS3 2014-10-22 09:15:19


This tutorial should explain how to work with keyboard events.


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature