Comunidad de diseño web y desarrollo en internet online

Ayudita!!!

Citar            
MensajeEscrito el 20 Feb 2009 08:00 pm
Hola amigos, como puedo hacer una animacion en la que una bolita (movieclip) no se deje tocar por el mouse, osea cuando quiera hacer rollover esta se escape.

Porfavor espero alguna respuesta...

Gracias

Por useraul

Claber

131 de clabLevel



Genero:Masculino  

Huantalandia

msie
Citar            
MensajeEscrito el 20 Feb 2009 08:31 pm
:P intentalo asi:

Código ActionScript :

bolita.onRollOver = function()
{
   this.x = Math.floor(Math.random() * Stage.width);
   this.y = Math.floor(Math.random() * Stage.height);
   this.onEnterFrame = function()  
   { 
      this._x += (this.x - this._x)/5;  
      this._y += (this.y - this._y)/5;   
        if (Math.abs(this.x-this._x)<0.5 && Math.abs(this.y-this._y)<0.5 ) 
      {   
         this._x = this.x;  
         this._y = this.y;
         delete this.onEnterFrame;   
      }   
   };   
}


bolita es el nombre de instancia del MovieClip que no se debe dejar tocar. Suerte.

Por LongeVie

Claber

1741 de clabLevel

1 tutorial

Genero:Masculino  

En un lugar, re moto.

firefox
Citar            
MensajeEscrito el 20 Feb 2009 09:25 pm
hey man, ke bien gracias por tu ayuda.

un abrazo, cdte

Por useraul

Claber

131 de clabLevel



Genero:Masculino  

Huantalandia

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.