Solved

add event leastener for keyboard event spacebar

Posted on 2009-05-18
1
300 Views
Last Modified: 2013-11-11
The case Keyboard.UP will execute if I press the up arrow in my kyboard. what should I write if I want to press the spacebarr for example. should it be somehting like case SpaceBar?

function Degree(event:KeyboardEvent):void
{
switch(event.keyCode)
{
case Keyboard.UP :
rd();
break;
case Keyboard.DOWN :
ld();
break;
default :
break;
}
}
0
Comment
Question by:TonoNam
1 Comment
 
LVL 22

Accepted Solution

by:
rascalpants earned 125 total points
Comment Utility
use Keyboard.SPACE


rp / ZA
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now