ho trovato un 3d..
si stava trattando una situazione simile alla mia!
ma non esattamente la stessa! e cmq non mi è molto chiaro come funzini :master:
codice:
_global.fadeOutController = {};
fadeOutController.working = function()
{
if(this.level._alpha > 0){
this.level._alpha -= 5;
} else {
this.level.unloadMovie();
clearInterval(this.fadeID);
}
};
fadeOutController.fadeOutLevel = function(num)
{
this.level = eval("_level" + num);
this.fadeID = setInterval(this, "working", 50);
};
// esempio
fadeOutController.fadeOutLevel(1)
grazie a tutti ciao