![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/04/2004, 21:08
|
![Avatar de Ludwingg](http://static.forosdelweb.com/customavatars/avatar28657_2.gif) | | | Fecha de Ingreso: diciembre-2002 Ubicación: San Salvador
Mensajes: 951
Antigüedad: 22 años, 2 meses Puntos: 5 | |
circulo._x=300 hola...
tengo un circulo que se mueve desde la izquierda a la derecha asi (gracias a Maltos):
circulo.onEnterFrame=function(){
if(this._x>=300)
delete this.onEnterFrame
}
else{
this._x++;
}
}
la pregunta principal es: ¿como puedo hacer que el circulo se mueva mas rapido que "this._x++"???
he intentado asi:
circulo.onEnterFrame=function(){
if(this._x>=300)
delete this.onEnterFrame
}
else{
this._x=this._x+10;
}
}
pero no funciona por que quiero que cuando el circulo este en _x=300 se detenga totalmente pero actionscript lo envia hasta _x=330 no se por que.....
muchas gracias
Última edición por Ludwingg; 05/04/2004 a las 09:36 |