onClipEvent (enterFrame) {
finelargh = 525;
iniziolargh = aa;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.foto="uno";
}
}
onClipEvent (enterFrame) {
iniziolargh = aa;
if (_root.foto=="uno"){
if (i++ == 10) {
finelargh = 525;
i = 0;
}
_width += (finelargh-_width)/frame;
}
if (_root.foto=="zero"){
aa=181;
_width += (iniziolargh-_width)/frame;
}
if (_root.foto=="due" or _root.foto=="tre"){
aa=135;
_width += (iniziolargh-_width)/frame;
}
if (_root.foto=="quattro"){
aa=41;
_width += (iniziolargh-_width)/frame;
}
}
onClipEvent (load) {
frame = 10;
i = 0;
_root.foto="zero";
}
Messo così secondo voi è possibile che controlli solo il primo if e poi non vada più avanti?![]()