# How to animate dynamically created movie clip

**URL:** <https://forum.kirupa.com/t/how-to-animate-dynamically-created-movie-clip/300043>\
**Category:** flash\
**Created:** [November 15, 2009, 9:10am UTC](https://forum.kirupa.com/t/how-to-animate-dynamically-created-movie-clip/300043 "2009-11-15T09:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![n000bie](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@n000bie](https://forum.kirupa.com/u/n000bie)\
**Post date:** [November 15, 2009, 9:10am UTC](https://forum.kirupa.com/t/how-to-animate-dynamically-created-movie-clip/300043/1 "2009-11-15T09:10:32Z")

</div>

I created a movie clip

```auto

var display_mc:MovieClip = new MovieClip();
    display_mc.graphics.beginFill(0x000000);
    display_mc.alpha= 0.0;
    display_mc.graphics.drawRect(0, 0, 310, 200);
    display_mc.graphics.endFill();
    display_mc.x = offsetX;
    display_mc.y = 0.1;
    addChild(display_mc);

```

now this movie clip contains 3 dynamic text box and 1 image loaded from xml,

this codes loops and creates n number of movie clip and display

```auto
for (var i:int = 0; i<=total-1; i++) {
        var myHeading:String = xmlData.content.title.text()*;
        var myDesc:String = xmlData.content.desc.text()*;
        var myLink:String = xmlData.content.links.text()*;
        var myImg:String = xmlData.content.url.text()*
        createMovieClip(offsetX, myHeading, myDesc, myLink);
        loadImage(myImg, imgX); // loads bitmap
        offsetX = offsetX + 312; // x offset for movie clip
        imgX = imgX + 312; // offset for logo
        //trace(imgX);
        //trace(offsetX);
    }

```

How can I animate this (slide to x position), since there is nothing in timeline ?

Any help much appreciated…
