Flash Keyboard Events Tutorial
wie Sie tun, machen, Film, Beispiel
9m 43sLänge
Hi! Today I'll show you how to use basic Keyboard Events in Flash AS3 Link To Site: http://people.uncw.edu/tompkinsj/112/FlashActionScript/keyCodes.htm
Kommentare
-
Excelente!!!
-
I'm getting an undefined property Keyboard on line 4 & 7????? help
-
Thanks, kid this helped me a lot is it possible for you to make a scrolling background tutorial?
-
stage.addEventListener(KeyboardEvent.KEY_DOWN,levo); function levo (e:KeyboardEvent):void { if (e.keyCode == Keyboard.LEFT) { palka.rulj.gotoAndPlay(2); } if (e.keyCode == Keyboard.RIGHT) { palka.rulj.gotoAndPlay(31); } }
-
Great tutorial! Everything is covered in this video, however.... i would have liked to see movement codes too, i mean how to tell an object to move 5 pixels left or right, can you do a video tutorial covering advanced movement in AC 3.0 for objects? Like double jumping, or when pressing another button it moves the object 7 pixels away from its position( like running in a video game)? Also can you make a video about using .gif images as symbols? I dont know if that is possible or not thou... :-s
-
Fantastic tutorial. Thank you for your contribution.
-
You can't use AS3 in a AS2 file. Create a New AS3 File, and than all should go well
-
@carlofabyss nvm found what I did wrong :P
-
easy to follow, but for some reason it doesnt work at all for me
-
glad I came across this. worked great for me. nice work. thanks!
-
Good tutorial little man! I too like how you showed why it didn't work, helps to understand.
-
Great job dude. I like how you took it slow and put in some deliberate errors to show how the code works.
-
@legendlazy True, but only if you are making an .as file. If you're doing it in the .fla file, you don't. However, you're correct in doing that, as it its good practice.
-
I'm using CS5 and I needed to add import flash.events.KeyboardEvent; import flash.ui.Keyboard; for this to work
-
lol I laughed at the += 0 part.
-
Hey- Great tute! What do you think you would do if I wanted to use up/down keys to move to next frame and then the right key to go out to say frame 15?
-
Thanks!
-
Brilliant Tutorial!!