# Looping from \_parent on alpha fadeout

**URL:** <https://forum.kirupa.com/t/looping-from--parent-on-alpha-fadeout/332296>\
**Category:** Uncategorized\
**Created:** [April 8, 2014, 6:49pm UTC](https://forum.kirupa.com/t/looping-from--parent-on-alpha-fadeout/332296 "2014-04-08T18:49:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capdetrons](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@capdetrons](https://forum.kirupa.com/u/capdetrons)\
**Post date:** [April 8, 2014, 6:49pm UTC](https://forum.kirupa.com/t/looping-from--parent-on-alpha-fadeout/332296/1 "2014-04-08T18:49:46Z")

</div>

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:

```auto
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:

```auto
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?
