Comunidad de diseño web y desarrollo en internet online

Accion Roll over- mouse over

Citar            
MensajeEscrito el 31 Ene 2010 10:55 pm
Hola!!

Me gustaria que me indicaran como hago para que al darle rool over a un objeto (boton), este haga un movimiento de un lado a otro, como un pendulo y que al hacer roll out vuelva a su posicion inicial,
todo esto dentro de una clase

Gracias!!!

Por dianita666

Claber

185 de clabLevel



 

firefox
Citar            
MensajeEscrito el 01 Feb 2010 12:45 pm
la opción mas simple es que hagas la animación del péndulo y pongas una variable que cuando pasa a true hace que se detenga en el medio .... obviamente la variable pasa a true en el rollOut y a false en el rollOver

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 01 Feb 2010 08:45 pm
pues si, pero esa es la opcion facil, la idea es optimizar recursos y animar lo mas posible con AS,

alguien sabria como hacerlo?

Por dianita666

Claber

185 de clabLevel



 

firefox
Citar            
MensajeEscrito el 01 Feb 2010 11:15 pm

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 02 Feb 2010 06:33 pm
gracias Jorge, pero todos esos ejemplos estan es AS1, me podrias colaborar con uno en AS3 ??

gracias

Por dianita666

Claber

185 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Feb 2010 06:46 pm
Seguro que gogleas mejor que yo ;)

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 02 Feb 2010 06:53 pm
ya he visto en todo lado y nada

por favor ayuda!!!

Por dianita666

Claber

185 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Feb 2010 07:14 pm
pues encontre este code en la red, pero no se como adaptarlo a mis necesidades:
En una clase y que al darle roll over a un objeto (boton/MC), este haga un movimiento de un lado a otro, como un pendulo y que al hacer roll out vuelva a su posicion inicial,

movieclip.prototype.mouser = function (rot)
{
this.q++;
rotation = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x) * 180 / 3.141593 - 90;
this.button.onPress = function ()
{
down = true;
if (_root._ymouse <= this._y)
{
above = true;
}
else
{
above = false;
} // end if
};
this.button.onRelease = function ()
{
down = false;
};
this.button.onReleaseOutside = function ()
{
down = false;
};
if (down)
{
if (above)
{
this._rotation = rotation;
}
else
{
this._rotation = rotation - 180;
} // end if
}
else
{
inertia = 0.900000;
speed = 0.080000;
diff = -this._rotation + rot;
change = change * inertia + diff * speed;
this._rotation = this._rotation + change;
} // end if
};

Por dianita666

Claber

185 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Feb 2010 07:27 pm
Abre google, pon "as3 pendulum", lee la entrada del foro de Kirupa

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 02 Feb 2010 09:26 pm
pues logre todo tipo de movimientos, pero de pendulo narinas

ayuda please!!

Por dianita666

Claber

185 de clabLevel



 

firefox

 

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