Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/03/2006, 21:49
chakals21
 
Fecha de Ingreso: febrero-2006
Mensajes: 30
Antigüedad: 18 años, 2 meses
Puntos: 0
muchas gracias por la aclaración.. se agradece
al final me resulto algo asi:

acceleration = 10
newpos = function () {
ranx = Math.round((Math.random ()*400));
rany = Math.round ((Math.random ()*1100));

}
newpos();
this.onEnterFrame = function() {
this._x += ((ranx-this._x)/acceleration);
this._y += ((rany-this._y)/acceleration);
if (Math.round(this._x) == ranx || Math.round(this._y) == rany) {
newpos();
}
};



pero me gustaria conseguir un destello..como lo harias??

gracias, un saludo