Thursday, April 22, 2010

Transparent effect

onClipEvent(load){
this.stop();
this._alpha = 0;
var done:Boolean = false;
this.cF = 1;
}

onClipEvent(enterFrame){
if(this._alpha < 100 && !this.done){
this._alpha += 5;
}
if(this.done){
if(this._alpha <= 0){
this._x = -500;
_root.goNext = true;
}else{
this._alpha -= 5;
}
}
}

No comments:

Post a Comment