metti sul primo fotogramma
codice:
//// ** ////
function su(){
this.i=this._alpha;
this.onEnterFrame=function(){
trace(this.i)//
if(this.i!=100){
this.i+=10;
this._alpha=this.i;
}else{
delete this.onEnterFrame
}
}
}
//// ** ////
function giu(){
this.i=this._alpha;
this.onEnterFrame=function(){
trace(this.i)//
if(this.i!=0){
this.i-=10;
this._alpha=this.i;
}else{
delete this.onEnterFrame
}
}
//// ** ////
poi per fare il fadeout metti al pulsante o mc
codice:
on(release){
_root.giu();
}
per il fadein
codice:
on(release){
_root.su();
}