PDA

View Full Version : alpha if/else question



dru_nasty
June 4th, 2004, 01:25 AM
On a movie clip I have the following:


onClipEvent(load){
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha <= 0){
this._alpha +=5;
}
}

This only increases the alpha one step. Seems like the (enterframe) isn't repeating. Should I add an else statement to tell it when to stop?
I suck.

davidchang
June 4th, 2004, 01:58 AM
ur if statement should be:
if (this._alpha <= 100)

instead of
if (this._alpha <= 0)

dru_nasty
June 4th, 2004, 02:03 AM
ahhh! Thanks for catchin that for me!