Comunidad de diseño web y desarrollo en internet online

Dos Acciones en un Movieclip

Citar            
MensajeEscrito el 24 Sep 2008 07:39 pm
Hola otra vez yo molestando por aqui, tengo el siguiente problema: Estoy trabajando con Movie clips que tienen un MC tween y llaman un archivo externo, lo que quiero hacer es que al hacer mouse Over se ejecute una accion de MC tween en otro movieclip

Me explico porque, pues es que quiero q el boton tenga como una sombra y que cuando le haga mouse over al movieclip el movieclip de la sombra se mueva a la par como un reflejo

Estoy utilizando esto

Código :

onClipEvent (load) {
   this.xO = this._y;
   
   this.onRollOver = function() {
      this.tween("_y", this.xO -76, 0.5, "easeoutbounce");
   };
   this.onRollOut = function() {
      this.tween("_y", this.xO, 0.7, "easeoutbounce");
   };
   this.onRelease = function() {
      this.tween("_y", this.xO, 0.7, "easeoutbounce");
   };
   this.onRelease = function() {
_root.container.loadMovie("mc4.swf");
   } 
}


Esto le da movimieto al movieclip, pero no se como darle movimiento al movieclip del reflejo muchas gracias por todo

Por Pablito81

10 de clabLevel



 

firefox
Citar            
MensajeEscrito el 24 Sep 2008 08:37 pm
Usa un solo callback con muchos comandos. En este caso el segundo sobreesacribe al primero:

Código ActionScript :

this.onRelease = function() {
      this.tween("_y", this.xO, 0.7, "easeoutbounce");
   };
   this.onRelease = function() {
      _root.container.loadMovie("mc4.swf");
   } 


Lo correcto sería

Código ActionScript :

this.onRelease = function() {
      this.tween("_y", this.xO, 0.7, "easeoutbounce");
      _root.container.loadMovie("mc4.swf");
 } 


Lo mismo para el resto

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 24 Sep 2008 10:42 pm
Gracias, el problema que tengo es q en esa misma accion quiero decirle a otro movieclip diferente que se mueva, y no se como hacer eso, gracias

Por Pablito81

10 de clabLevel



 

firefox
Citar            
MensajeEscrito el 25 Sep 2008 10:54 am
Pues agrega:

_root.otroMovieClip.tween(.....)

Donde otroMovieClip es el nombre de instancia del clip que quieres mover

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 25 Sep 2008 06:12 pm
Bien lo probaré muchas gracias por tu ayuda :lol:

Por Pablito81

10 de clabLevel



 

firefox

 

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