# Tweenlite keeping reference?

**URL:** <https://forum.kirupa.com/t/tweenlite-keeping-reference/294614>\
**Category:** flash\
**Created:** [August 17, 2009, 3:43pm UTC](https://forum.kirupa.com/t/tweenlite-keeping-reference/294614 "2009-08-17T15:43:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmennenoh](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dmennenoh](https://forum.kirupa.com/u/dmennenoh)\
**Post date:** [August 17, 2009, 3:43pm UTC](https://forum.kirupa.com/t/tweenlite-keeping-reference/294614/1 "2009-08-17T15:43:44Z")

</div>

Having a little issue with TweenLite seemingly keeping a reference to my clip. In one method I do:

detail.btnBack.addEventListener(MouseEvent.CLICK, removeDetail, false, 0, true);

Then I have the removeDetail, and killDetail methods:

private function removeDetail(e:MouseEvent):void  
{  
TweenLite.to(detail, .5, { alpha:0, onComplete:killDetail } );  
}

private function killDetail():void  
{  
removeChild(detail);  
}

This _seems_ to work, except the removeChild is not working - the detail clip is faded, and killDetail is called, but the clip remains. If I remove the TweenLite fade and do the removeChild right in removeDetail() the clip is fully removed from the display list. I’ve tried doing a TweenLite.killTweensOf(detail) within the killDetail(), before removing child on it, but that doesn’t help.

I can’t recall ever having an issue like this with TweenLite before.
