How to transform a standard photograph for use with a specific colour scheme or brand imag..
Using server side includes to design and code your web site allows you to keep your develo..
This flash tutorial will teach you about the drop target property. The drop target propert..
Tutorial on making a great flying 3D effect of a letter giving magnetic field effect and a..
Its amazing what you can get from using a combination of different filter in Photoshop. Th..
Sorenson Squeeze is a great piece fo software that has saved my a..
Heres a very cool time-lapse tutorial for 3D Studio Max that show..
Heres another helpful bit of flash actionscript code to help you on your way with developing dynamic flash content.
Key Listeners allow you to record the input of keys from the keyboard in flash and allow you to peform actions with keys
First you need to setup your key listener as a function as follows:
KeyListener = new Object();
KeyListener.onKeyDown = function() {
if (Key.getAscii() == 13) { // Code for ENTER key
gotoAndPlay(25);
} else if (Key.getAscii() == 8) { // Code for BACKSPACE key
gotoAndPlay(35);
}
}
Then either after the function or on another frame where you want the key listender to start simply add this code:
Key.addListener(KeyListener);
this.createEmptyMovieClip("_keyListener",1);
Key.addListener(_keyListener);
_keyListener.onKeyDown=function(){
play();
}
ENTER |
13 |
BACKSPACE |
8 |
SHIFT |
16 |
CTRL |
17 |
ALT |
18 |
0 |
48 |
1 |
49 |
2 |
50 |
3 |
51 |
4 |
52 |
5 |
53 |
6 |
54 |
7 |
55 |
8 |
56 |
9 |
57 |
Arrow Keys (left) |
37 |
Arrow Keys (up) |
38 |
Arrow Keys (right) |
39 |
Arrow Keys (down) |
40 |
Send to a friend