Hi,
I’m trying to loop a function as soon as the alpha from my text fades out completely, but I’ve read somewhere that alpha may not reach exactly 0 and don’t know how to handle this problem.
this is the function i have in the main timeline:
function attachClips():Void{
attachMovie("independencia_mc","independencia",this.getNextHighestDepth(),{_x:200, _y:350});
}
attachClips();
and this is in an attached clip that calls the fadeout function onSoundComplete:
fadeOutInd = function():Void{
trace(ind._alpha);
trace(ind);
new Tween(ind, "_alpha", None.easeNone, ind._alpha, 0, 2, true);
if(ind._alpha == 0){
ind.removeTextField();
_parent.attachClips();
}
}
but it doesn’t work and I don’t remember how to trace the actual alpha of the text
any ideas?