ho un menu che non funziona come dovrebbe....
è un pò complicato da spiegare comunque ci provo.....
ogni valore che assume K, il menu fa una cosa diversa. adesso vi incollo il codice(magari è un pò più chiaro.(chiunque volesse gli mando il file via mail)
this.renderbtn_mc.onPress = function() {
K = 0;
};
this.graficabtn_mc.onPress = function() {
K = 1;
};
this.allestimbtn_mc.onPress = function() {
K = 2;
};
this.webbtn_mc.onPress = function() {
K = 3;
};
this.menugraf_mc.graficapubbli1_btn.onPress = function() {
K = 4;
};
this.menuallest_mc.allestimenti1_btn.onPress = function() {
K = 5;
};
menurender_mc.onEnterFrame = function() {
(K == 0) && (menurender_mc._x += ((170-menurender_mc._x)/2));
(K == 1, 2, 3) && (menurender_mc._x += ((42.5-menurender_mc._x)/5));
};
menugraf_mc.onEnterFrame = function() {
(K == 1) && (menugraf_mc._x += ((170-menugraf_mc._x)/2));
(K == 0, 2, 3) && (menugraf_mc._x += ((42.5-menugraf_mc._x)/5));
};
menuallest_mc.onEnterFrame = function() {
(K == 2) && (menuallest_mc._x += ((170-menuallest_mc._x)/2));
(K == 0, 1, 3) && (menuallest_mc._x += ((42.5-menuallest_mc._x)/5));
};
menuweb_mc.onEnterFrame = function() {
(K == 3) && (menuweb_mc._x += ((170-menuweb_mc._x)/2));
(K == 0, 1, 2) && (menuweb_mc._x += ((42.5-menuweb_mc._x)/5));
};
//grafica pubblicitaria-------------------------------------------------------------------
this.menugraficapubbli1_mc.onEnterFrame = function() {
(K == 4) && (menugraficapubbli1_mc._x += ((380-menugraficapubbli1_mc._x)/5));
(K == 0,1,2,3,5) && (menugraficapubbli1_mc._x += ((0-menugraficapubbli1_mc._x)/5));
};
//allestimenti-----------------------------------------------------------------------------
this.menuallestimenti1_mc.onEnterFrame = function() {
(K == 5) && (menuallestimenti1_mc._x += ((380-menuallestimenti1_mc._x)/5));
(K == 0,1,2,3,4) && (menuallestimenti1_mc._x += ((0-menuallestimenti1_mc._x)/5));
};TRACE(K);

Rispondi quotando