Best viewed in Firefox

Awesty Productions

Useful Class for AS 3.0

April 30th, 2007 by awesty

Here is an awesome class someone at Kirupa has written that allows you to use Key.isDown in AS 3, since in AS 3 you can only check what the keys code.

http://www.kirupa.com/forum/sh…8269

Example of use:

import com.classes.Key;
Key.initialize(stage);
function test(event:Event){
if (Key.isDown(Keyboard.SPACE)) {
    trace("Ch-Ch-Check-Ch-Check-Ch-Check it out");
}
}
stage.addEventListener(Event.ENTER_FRAME,test);
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • Furl
  • MyShare
  • NewsVine
  • Netscape
  • Reddit
  • Simpy
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

RSS feed | Trackback URI

1 Comment »

Trackback by 123c480fadf3
2008-05-14 20:29:41

123c480fadf3…

123c480fadf3db92c643…

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.