# Jumbled Dynamic MC content

**URL:** <https://forum.kirupa.com/t/jumbled-dynamic-mc-content/223313>\
**Category:** Uncategorized\
**Created:** [April 21, 2007, 4:58am UTC](https://forum.kirupa.com/t/jumbled-dynamic-mc-content/223313 "2007-04-21T04:58:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![idlefl0w](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@idlefl0w](https://forum.kirupa.com/u/idlefl0w)\
**Post date:** [April 21, 2007, 4:58am UTC](https://forum.kirupa.com/t/jumbled-dynamic-mc-content/223313/1 "2007-04-21T04:58:56Z")

</div>

I’m creating an image gallery where i could have anywhere between 0-12 images import via external data(most likely xml).

I’ve created a container for an image which is just a movieclip that holds a movieclip with some basic tween. -

whenever the movieclip plays it works fine but the first frame displays throughout the whole tween… e.g small box in first frame, 2nd frame begin tween --\> increase box size --\> stop here. the box in the first frame doesn’t remove once the tween starts.

actionscript is as follows (main timeline)

var imgContainer:MovieClip;

imgContainer.createEmptyMovieClip(“instanceName”,getNextHighDepth());  
instanceName.attachMovie(“linkageName”,“newName”,getNextHighDepth());

actionscript for the movie clip with tween is:

stop();  
this.onRollOver = function(){  
this.gotoAndPlay(2);  
}

any help appreciated.

cheers
