# Tween through dynamically loaded images

**URL:** <https://forum.kirupa.com/t/tween-through-dynamically-loaded-images/288334>\
**Category:** flash\
**Created:** [May 14, 2009, 10:36am UTC](https://forum.kirupa.com/t/tween-through-dynamically-loaded-images/288334 "2009-05-14T10:36:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albassini](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Albassini](https://forum.kirupa.com/u/Albassini)\
**Post date:** [May 14, 2009, 10:36am UTC](https://forum.kirupa.com/t/tween-through-dynamically-loaded-images/288334/1 "2009-05-14T10:36:05Z")

</div>

I have a working AS2 banner that loads in an array of images into a movieclip using flashvars and then cycles through these (there’s no limit on the array length).

Unforunately, the images couldn’t alpha tween into eachother as the AS2 script needs to be seperated onto sperate keyframes in order to count through the array.

I’ve created another movieclip which loads in the ‘next’ image in the array, so that when the current image fades down, the next fades up.

So to break down:

bannerContainer\_mc - loads current image  
nextContainer\_mc - loads next image

Unfortunately when the timeline loops to the start again, bannerContainer\_mc loads in the image which was previously loaded into nextContainer\_mc. This creates a ‘jolt’ in the animation as the same image is re-loaded.

Is there any way of perhaps caching nextContainer\_mc at the end of the banner sequence, to save loading it again in bannerContainer\_mc?

I’ll post the AS2 script if need be (it’s not long)…any help much appreciated!
