Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/03/2006, 10:30
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Hola Nanod10:
coloca éste código en el primer frame de tu película:
var limiteDer:Number = 400;
var limiteAbj:Number = 100;
this.pelota.onEnterFrame = function():Void {
if (Key.isDown(Key.RIGHT)) {
if (this._x<limiteDer) {
this._x += 10;
}
} else if (Key.isDown(Key.DOWN)) {
if (this._y>limiteAbj) {
this._y -= -10;
}
}
};
El MC con nombre de instancia: pelota.

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/