# TweenMax.killAllTweens leaving tweens visible in getAllTweens

**URL:** <https://forum.kirupa.com/t/tweenmax-killalltweens-leaving-tweens-visible-in-getalltweens/276705>\
**Category:** flash\
**Created:** [December 2, 2008, 9:10pm UTC](https://forum.kirupa.com/t/tweenmax-killalltweens-leaving-tweens-visible-in-getalltweens/276705 "2008-12-02T21:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [December 2, 2008, 9:10pm UTC](https://forum.kirupa.com/t/tweenmax-killalltweens-leaving-tweens-visible-in-getalltweens/276705/1 "2008-12-02T21:10:32Z")

</div>

I’ve posted on the greensock forums as well, but haven’t had a response yet… any knowledge of this, I’d appreciate it:

After calling TweenMax.killAllTweens(), I still see tweens via TweenMax.getAllTweens(); I then proceed to loop through array and a) check the active property of each (all return false) and b) try to remove each Tween via TweenMax.removeTween(t) - but getAllTweens(); continues to return and array of tweens? I believe I’m racking up some memory usage due to these tweens not being removed killed - thoughts?

Thought I’d add to this - if utilizing the adobe debug players, and if you have ThunderBolt - you can see the traces of my attempt to clean up the tweens here:

1. use the arrow buttons to quickly toggle through 01,02,03 - this will allow tweens to build up fairly quickly
2. click the force GC button - that triggers killAllTweens and unloads all imagery (the only objects with tweens); - you’ll see the trace
3. click the force GC button again - at this point, I’m looping through getAllTweens array and checking active and attempting removeTween(t) on each - you’ll see traces here too

[http://dev.etainia.com/fp\_progress/](http://dev.etainia.com/fp_progress/)
