Demerdar
April 28th, 2003, 10:51 PM
Hi, i made text into a movie clip and put in this code to adjust the alpha.
onClipEvent (load){
this._alpha=100;
i=1;
}
onClipEvent (enterFrame) {
if(this._alpha=0 && i==0){
this._alpha+=1;
if(this._alpha>=100){
i=1;
}
}
else{
this._alpha+=1;
if(this._alpha<=0){
i=0;
}
}
}
The alpha is going down... I think, because the text isnt there. What i'm having trouble with is getting it to go back and forth. Increasing and decreasing the alpha when it gets to it's maximum or minimum. I hope I'm making some sense... Does anyone have any ideas? And no I cannot do this with a simple motion tween because there are things happening in the background.
onClipEvent (load){
this._alpha=100;
i=1;
}
onClipEvent (enterFrame) {
if(this._alpha=0 && i==0){
this._alpha+=1;
if(this._alpha>=100){
i=1;
}
}
else{
this._alpha+=1;
if(this._alpha<=0){
i=0;
}
}
}
The alpha is going down... I think, because the text isnt there. What i'm having trouble with is getting it to go back and forth. Increasing and decreasing the alpha when it gets to it's maximum or minimum. I hope I'm making some sense... Does anyone have any ideas? And no I cannot do this with a simple motion tween because there are things happening in the background.