Código ActionScript :
//El código es bastante fácil de entender
//Cada vez que entre en el fotograma
onClipEvent(enterFrame){
//Si la tecla IZQUIERDA está pulsada
if(Key.isDown(Key.LEFT)){
// Recoge la posición x del clip de pelíula y le resta 5
this._x -=2;
this.gotoAndStop(3);
}
}
// IR DERECHA
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x +=2;
this.gotoAndStop(2);
}
}
// IR HACIA ABAJO
onClipEvent(enterFrame){
if(Key.isDown(Key.DOWN)){
this._Y +=5;
this._xscale +=1;
this._yscale +=1;
}
}
// IR HACIA ARRIBA
onClipEvent(enterFrame){
if(Key.isDown(Key.UP)){
this._y -=5;
this._xscale -=1;
this._yscale -=1;
}
}
espero que me podais ayudar
