Salve a tutti,
come potrei rendere questo script un loop continuo?
onClipEvent (load) {
this._alpha = 50;
torna = false;
}
onClipEvent (enterFrame) {
if (this._alpha<100 && torna == false) {
this._alpha += 5;
}
if (this._alpha>=100 && torna == false) {
tempo = getTimer();
torna = true;
}
if (torna) {
newTime = getTimer();
if (newTime-tempo>2000 && _alpha>50) {
_alpha -= 5;
}
}
}
Grazie in anticipo a tutti.