Ciao,
ho tentato di fare una funzione di fadein e out, ma il problema è che vengono effettuati alla velocità della luce e ad occhio nudo nn si vedono, solo col debug si notano...

Ecco il codice:
codice:
this.fadeOut = function() {
	trace(_root.pannello.photo_mc._alpha+" "+this.fadeSpeed);
	while (_root.pannello.photo_mc._alpha>this.fadeSpeed) {
		_root.pannello.photo_mc._alpha -= this.fadeSpeed;
		trace(_root.pannello.photo_mc._alpha);
	}
	_root.pannello.photo_mc._alpha = 0;
}

this.fadeIn = function() {
	trace(_root.pannello.photo_mc._alpha+" "+this.fadeSpeed);
	while (_root.pannello.photo_mc._alpha<100-this.fadeSpeed) {
		_root.pannello.photo_mc._alpha += this.fadeSpeed;
		trace(_root.pannello.photo_mc._alpha);
	}
	_root.pannello.photo_mc._alpha = 100;
}
Come si risolve sto problema?