Hi there,
I’m sure this is really obvious but I am trying to fade out a mc using ENTER_FRAME but not getting anywhere, here is the code I have so far:
teaPotMC.alpha = 0;
teaPotMC.addEventListener(Event.ENTER_FRAME, beginPour);
function beginPour(evt:Event):void {
if(teaPotMC.alpha > 100){
teaPotMC.alpha += 10;
} else {
teaPotMC.removeEventListener(Event.ENTER_FRAME, beginPour);
}
}
the trouble is that when i set a trace going it seems to be increasing the alpha, but the actual mc does not set itself to 0 it stays at 100%
What am i doing wrong?
Cheers,
Bob