Più precisamente.. questa è la funzione, va già bene così per AS3?
Codice PHP:
function cambiaSez(sezione) {
if (sezione=="ingresso") {
TweenMax.to(bgSito_mc, 1, {x:-86, roundProps:["x"], ease:Expo.easeOut});
}
if (sezione=="home") {
TweenMax.to(bgSito_mc, 1, {x:-898, roundProps:["x"], ease:Expo.easeOut});
}
if (sezione=="showroom") {
TweenMax.to(bgSito_mc, 1, {x:-3506, roundProps:["x"], ease:Expo.easeOut});
}
if (sezione=="marchi") {
TweenMax.to(bgSito_mc, 1, {x:-3142, roundProps:["x"], ease:Expo.easeOut});
}
if (sezione=="contatti") {
TweenMax.to(bgSito_mc, 1, {x:-4764, roundProps:["x"], ease:Expo.easeOut});
}
}
cambiaSez("home");