# Easing a empty mc with a dynamic image

**URL:** <https://forum.kirupa.com/t/easing-a-empty-mc-with-a-dynamic-image/175816>\
**Category:** flash\
**Created:** [January 18, 2006, 1:27am UTC](https://forum.kirupa.com/t/easing-a-empty-mc-with-a-dynamic-image/175816 "2006-01-18T01:27:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)\
**Post date:** [January 18, 2006, 1:27am UTC](https://forum.kirupa.com/t/easing-a-empty-mc-with-a-dynamic-image/175816/1 "2006-01-18T01:27:20Z")

</div>

I’ve worked on this for far to long to know success and it’s probably something really simple that I am forgetting

I currently have a empty movieclip created that loads the image from the url. This image\_mc is given a actionscript tween from left to right. The problem is that it doesn’t move left to right. When you take of the loadMovie function it works as it should. any help would be appreciated.

```auto

this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
image_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");

var currentFrame = 0;

image_mc.onEnterFrame = function() {
    currentFrame++;
    this._x = currentFrame*11;
    if (currentFrame>50) {
        delete this.onEnterFrame;
    }
};

```
