Comunidad de diseño web y desarrollo en internet online

menu de flash

Citar            
MensajeEscrito el 25 Jul 2009 12:16 am
Hola soy Alex Hurtado.

la consulta es la siguiente:

tengo un bonito menu flash que me paso un amigo, este contiene 9 botones y se desplaza con una espiral estirada a lo vertical con el movimiento del puntero sobre los botones. Cuando ingreso a flash para modificarlo me encuentro que tiene bastante programacion y esta hecho a base de un movi clip y cuando modifico el texto de este movi clip todos los otros botones adquieren el mismo texto. Ya se dira que entonces lo que debo de hacer en colocar un movi clip en cada boton pero me da el mismo resultado. Yo creo que esto se debe a los scripts. Pero no se manejar action script.

Por lo pronto lo unico que puedo enviarle es un txt con los scripts.

uds diran si envio el formato fuente del menu flash.

Gracias de antemano por colaborarme.


botones

on (rollOver) {
NewPosY = 225;
Vertex1.GotoAndPlay(2);
}
on (rollOut) {
Vertex1.GotoAndPlay(20);
}

fotograma1
count = 0;
while (count < VerticeNum) {
count ++;
this["z" add count] = Math.cos((count*45) * (math.PI/180)) * 50;
this["y" add count] = Math.sin((count*45) * (math.PI/180)) * 50;
this["x" add count] = (count * 40) - (VerticeNum/2 * 40);
duplicateMovieClip("Vertex", "Vertex" add count, count );
}
setProperty("Vertex", _visible, 0);
setProperty("Line", _visible, 0);
CenterRotationX = 0;
CenterRotationY = 0;
TrailerX = 50;
TrailerY = 360;

fotograma2
call("Mousetracking");
call("Calc3d");

fotograma3
prevFrame();
play();

fotograma4
DifferenceX = NewPosX - TrailerX;
DifferenceY = NewPosY - TrailerY;
addX = differenceX / 10;
addY = differenceY / 5;
overshootX = overshootX + addX;
overshootY = overshootY + addY;
TrailerX = TrailerX + overshootX + addX;
TrailerY = TrailerY + overshootY + addY;
Yangle = TrailerX;
Xangle = TrailerY;

fotograma5
c = 0;
while (c < VerticeNum) {
c++;
Xang = Xangle * (math.PI/180);
Yang = Yangle * (math.PI/180);
//-----------------------------------------
//--- y rotate ---
//-----------------------------------------
this["zpos" + c] = this["z" + c] * math.cos(Yang) - this["x" + c] * math.sin(Yang);
this["xpos" + c] = this["z" + c] * math.sin(Yang) + this["x" + c] * math.cos(Yang);
//-----------------------------------------
//--- x rotate ---
//-----------------------------------------
this["ypos" + c] = this["y" + c] * math.cos(Xang) - this["zpos" + c] * math.sin(Xang);
this["zpos" + c] = this["y" + c] * math.sin(Xang) + this["zpos" + c] * math.cos(Xang);
//-----------------------------------------
//-- 3d to 2d --
//-----------------------------------------
this["Depth" + c] = (1 / ((this["zpos" + c]/perspective) + 1));
//-----------------------------------------
//--- draw ---
//-----------------------------------------
this["Vertex" + c]._x = this["xpos" + c] * this["Depth" + c] + CenterRotationX;
this["Vertex" + c]._y = this["ypos" + c] * this["Depth" + c] + CenterRotationY;
this["Vertex" + c]._xscale = this["Vertex" + c]._yscale = (this["Depth" + c] / 2) * 500 ;
this["Vertex" + c]._alpha = this["Depth" + c] * 100;
//-----------------------------------------
//--- Z-Sorting ---
//-----------------------------------------
this["Vertex" + c].swapDepths(this["Depth" + c] * 500);
}

Por fm_yes

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 25 Jul 2009 03:55 am
mmm.. creo que no es problema del codigo, como dices que todo el menus esta basado en un MC, puede ser que el texto se encuentre en el mismo movie clip intenta duplicando el movieClip del boton. y asi para cada uno, talvez te funciona.

Por Mago.ozkuro

Claber

1798 de clabLevel

10 tutoriales
1 articulo

  Héroes Premio_Secretos

Estacion espacial CLAB®

firefox
Citar            
MensajeEscrito el 25 Jul 2009 09:03 pm
ya lo intente pero sucede los mismo lo duplico le cambio de nombre en la biblioteca y luego lo mando al escenario y el modifico el nombre pero entonces el mc principal tambien cambia y asi consigo el mismo resultado: tener botones repetidos.
Gracias por la ayuda. Dime es posible que yo te mande el archivo flash para que tu lo estudies y me puedas ayudar a dar una solucion a este problema.
Si asi fuese dame un correo para que te lo envie o dime como lo puedo subir al foro y asi los demas me puedan ayudar.


Muchas gracias.

Por fm_yes

1 de clabLevel



 

firefox

 

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