# Thumbnail tween getting garbage collected

**URL:** <https://forum.kirupa.com/t/thumbnail-tween-getting-garbage-collected/311675>\
**Category:** flash\
**Created:** [July 14, 2010, 1:04am UTC](https://forum.kirupa.com/t/thumbnail-tween-getting-garbage-collected/311675 "2010-07-14T01:04:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianharms](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@brianharms](https://forum.kirupa.com/u/brianharms)\
**Post date:** [July 14, 2010, 1:04am UTC](https://forum.kirupa.com/t/thumbnail-tween-getting-garbage-collected/311675/1 "2010-07-14T01:04:29Z")

</div>

I recently posted on here about tweening in alphas of thumbnails that I was adding to a movieclip. It seems that the tween is getting garbage collected because not all of the thumbs fade in all the way. I have the tween defined outside of the function, but it is tweening a loader that is created within the function. Could this cause the tween to get garbage collected? if so, how do I fix it?

Here is the pertinent code:

var thumbTween:Tween;  
var my\_thumb:Loader;

function thumbLoaded(e:Event):void{  
my\_thumb = Loader(e.currentTarget.loader);  
my\_thumb.alpha = 0;  
container\_mc.addChild(my\_thumb);  
thumbTween = new Tween(my\_thumb, “alpha”, None.easeNone, 0, 1, 1, true);  
}

Any ideas?  
thanks
