Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/04/2007, 04:05
Avatar de PedroRodas
PedroRodas
 
Fecha de Ingreso: noviembre-2005
Ubicación: Cádiz
Mensajes: 393
Antigüedad: 18 años, 4 meses
Puntos: 0
Re: 12 MC distintos - Presionar tecla se mueva el MC seleccionado.

quieres mover un clip con el teclado no?

onClipEvent(load)
{
v=10;
}
onClipEvent(enterFrame)
{
if(Key.isDown(Key.UP) && (this._y>0))this._y-=v;
if(Key.isDown(Key.DOWN) && (this._y<550))this._y+=v;
if(Key.isDown(Key.LEFT) && (this._x>64.4))this._x-=v;
if(Key.isDown(Key.RIGHT) && (this._x<600))this._x+=v;
//Si una tecla está pulsada (isDown). Luego concreta que sea una en concreto, la de arriba (Key.UP)
if (Key.isDown(Key.SPACE)) this._rotation+=5;
}