Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/01/2009, 22:02
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: duda con efecto swapDepths

1.- crea un campo de texto dinamico y nombralo como nombre de instancia tool_tip_txt
2.- ese campo de texto conviertelo a movie lcip y como nombre de instancia nombralo tool_tip_mc

ok ahora tienes un mc y adentro un campo de texto ok.

3.- coloca esto : (que es tu mismo codigo pero modificado)


Código:
this.onEnterFrame = function() {
	tool_tip_mc._x = _xmouse;
	tool_tip_mc._y = _ymouse;
	trace("onEnterFrame called");
};


function sobre_func(boton_mc:MovieClip, mensaje_str:String) {
	tool_tip_mc._visible = true;
	tool_tip_mc.swapDepths(2);
	tool_tip_mc.tool_tip_txt.text = mensaje_str;
	boton_mc.swapDepths(1);
	boton_mc._xscale = 140;
	boton_mc._yscale = 140;

}

function fuera_func(boton_mc:MovieClip) {
	tool_tip_mc._visible = false;
	boton_mc.swapDepths(1);
	boton_mc._xscale = 100;
	boton_mc._yscale = 100;

}

efecto.onRollOver = function() {
	sobre_func(this,"efecto uno");
};
efecto.onRollOut = function() {
	fuera_func(this);

};
efecto1.onRollOver = function() {
	sobre_func(this,"efecto dos");

};
efecto1.onRollOut = function() {
	fuera_func(this);
};

si tienes dudas vienes y preguntas.