ho sbattuto la testa fino ad ora..
QUESTO è il risultato e di seguito posto il codice:
uno.pp.onRollOver = function() {
if (dueacceso == true) {
tweenBall2accesospento();
tweenBall3iniziospento();
tweenBall4iniziospento();
}else{
tweenBall2iniziospento();
tweenBall3iniziospento();
tweenBall4iniziospento();
}
};
unoacceso = true;
uno.pp.onRollOut = function() {
unoacceso = false;
};
due.pp.onRollOver = function() {
if (unoacceso == true) {
tweenBall2spentoacceso();
}else{
tweenBall2inizioacceso();
//tweenBall3iniziospento();
//tweenBall4iniziospento();
}
if (treacceso == true) {
tweenBall3accesospento();
}
dueacceso = true;
};
due.pp.onRollOut = function() {
dueacceso = false;
};
tre.pp.onRollOver = function() {
if (dueacceso == true) {
tweenBall3spentoacceso();
}else{
//tweenBall2iniziospento();
tweenBall3inizioacceso();
//tweenBall4iniziospento();
}
if (quattroacceso == true) {
tweenBall4accesospento();
}
treacceso = true;
};
tre.pp.onRollOut = function() {
treacceso = false;
};
quattro.pp.onRollOver = function() {
if (treacceso == true) {
tweenBall4spentoacceso();
}else{
//tweenBall2iniziospento();
//tweenBall3iniziospento();
tweenBall4inizioacceso();
}
quattroacceso = true;
};
quattro.pp.onRollOut = function() {
quattroacceso = false;
};
function tweenBall2iniziospento() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 322;
var end = 456;
var time = .5;
var mc = due;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall2inizioacceso() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 322;
var end = 276;
var time = .5;
var mc = due;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall2spentoacceso() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 456;
var end = 276;
var time = .5;
var mc = due;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall2accesospento() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 276;
var end = 456;
var time = .5;
var mc = due;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall3iniziospento() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 430;
var end = 522;
var time = .5;
var mc = tre;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall3inizioacceso() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 430;
var end = 341;
var time = .5;
var mc = tre;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall3spentoacceso() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 522;
var end = 341;
var time = .5;
var mc = tre;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall3accesospento() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 341;
var end = 522;
var time = .5;
var mc = tre;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall4iniziospento() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 537;
var end = 583;
var time = .5;
var mc = quattro;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall4inizioacceso() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 537;
var end = 403;
var time = .5;
var mc = quattro;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall4spentoacceso() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 583;
var end = 403;
var time = .5;
var mc = quattro;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
function tweenBall4accesospento() {
easeType = mx.transitions.easing.Regular.easeOut;
var begin = 403;
var end = 583;
var time = .5;
var mc = quattro;
ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
credetemi le ho tentate tutte ma alla fine secondo me non mi becca il parametro "acceso" attribuito ai tasti (x intenderci unoacceso = true
ho provato a metterlo dentro efuori dalle funzioni.. ho provato a far muovere pure solo i tasti interessati dal roll.. ma niente NIENTEEEEEEEEEEEEEEEE![]()
![]()
mando il sorgente a chiunque pensi di poterlo correggere![]()
attendo fiducioso........................... SIGH![]()
![]()
![]()


Rispondi quotando