flash on 2013-2-6
♥0 |
Line 13 |
Modified 2013-02-06 00:34:31 |
MIT License
archived:2017-03-20 03:49:15
ActionScript3 source code
/**
* Copyright TmskSt ( http://wonderfl.net/user/TmskSt )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/uw2L
*/
package {
import flash.events.KeyboardEvent;
import flash.display.Sprite;
import com.actionscriptbible.Example;
public class FlashTest extends Example {
public function FlashTest() {
// write as3 code here..
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
}
private function onKeyDown(e:KeyboardEvent):void {
trace("A");
}
}
}