El tema es que no tiene explicacion de como usarlo, igual le pude hacer algunas modificaciones.
el codigo del primer frame es este:
Código :
// Inicial
Lbot = ["Clientes", "Contacto", "Productos", "Empresa"];
Lcolor = ["FF0000", "00AA00", "00AAAA", "AA00AA"];
rad1 = 80;
rad2 = 450;
centx = 400;
centy = 300;
posselx = 100;
possely = 100;
acel = 10;
//
ang = 360/Lbot.length;
angrad = ang/180*Math.PI;
trace(angrad);
for (n=0; n<Lbot.length; n++) {
attachMovie("boton", "b"+n, n);
_root["b"+n].texto = Lbot[n];
_root["b"+n].num = n+1;
_root["b"+n]._x = centx;
_root["b"+n]._y = centy;
_root["c"+n] = new Color(_root["b"+n].fondo);
_root["c"+n].setRGB("0x"+Lcolor[n]);
_root["b"+n].destx = centx+(Math.cos(angrad*n)*rad1);
_root["b"+n].desty = centy+(Math.sin(angrad*n)*rad1);
_root["b"+n].destscale = 100;
_root["b"+n].onRollOver = function() {
this.destscale = 200;
};
_root["b"+n].onRollOut = function() {
this.destscale = 100;
};
_root["b"+n].onPress = function() {
if (this.destx != 650) {
this.destscale = 100;
for (n=0; n<Lbot.length; n++) {
_root["b"+n].destx = centx+(Math.cos(angrad*n)*rad2);
_root["b"+n].desty = centy+(Math.sin(angrad*n)*rad2);
}
this.destx = 650;
this.desty = 500;
this.gotoAndStop(2);
} else {
for (n=0; n<Lbot.length; n++) {
_root["b"+n].destx = centx+(Math.cos(angrad*n)*rad1);
_root["b"+n].desty = centy+(Math.sin(angrad*n)*rad1);
_root["b"+n].destscale = 100;
}
this.gotoAndStop(1);
}
};
}
idmove = setInterval(mover, 10);
function mover() {
for (n=0; n<Lbot.length; n++) {
dif = _root["b"+n].destx-_root["b"+n]._x;
_root["b"+n]._x += (dif/acel);
dif = _root["b"+n].desty-_root["b"+n]._y;
_root["b"+n]._y += (dif/acel);
dif = _root["b"+n].destscale-_root["b"+n]._yscale;
_root["b"+n]._yscale += (dif/acel);
_root["b"+n]._xscale = _root["b"+n]._yscale;
_root["b"+n]._alpha = _root["b"+n]._yscale/2;
}
}
lo que hace es generar y duplicar un mc que esta en la biblioteca, lo que no logro es darle funcion para que se conporte como boton. Es lo unico que no logo hacer.
Les dejo el fla para que lo vean si me quieren dar una mano.
rapidshare.com
megaupload.com
grax de antemano
