actionscripts básicos
(última clase con lorrrrd vader)
1
mc_ball._x = -70;
mc_ball._y = 120;
mc_ball._alpha = 60;
derecha.onPress = function(){
mc_ball.onEnterFrame = function(){
mc_ball._rotation = mc_ball._rotation -10;
this._x = this._x+10;
if (this._x>600){
this._x = -70
}
}
}
**acotaciones**
mc_ball = es el movie clip de la bola
derecha = es otro movie clip, que esta vez hará de botón
2
i=10;
mc_ball.onEnterFrame = function(){
mc_ball._rotation = mc_ball._rotation -10;
this._x = this._x+i;
if (this._x>600){
this._x = -70
}
}
i++;
**acotaciones** mc_ball = es el movie clip de la bola
martes, 18 de marzo de 2008
Suscribirse a:
Entradas (Atom)
