Rotacionando objetos pelo teclado
Junho 9, 2008
Com um movieclip de instância objeto, coloque esse código no primeiro frame do seu MovieClip para rotacionar o objeto com a tecla SPACE:
RotateByKeys = new Object();
RotateByKeys.onKeyDown = function() {
if (Key.isDown(Key.SPACE)) {
objeto._rotation += 90;
}
};
Key.addListener(RotateByKeys);
Entry Filed under: Action Script, Flash. .
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed