# Load an image, make it rotate - agh!

**URL:** <https://forum.kirupa.com/t/load-an-image-make-it-rotate-agh/220125>\
**Category:** Uncategorized\
**Created:** [March 22, 2007, 11:01pm UTC](https://forum.kirupa.com/t/load-an-image-make-it-rotate-agh/220125 "2007-03-22T23:01:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalewb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dalewb/32/3029_2.png) [@dalewb](https://forum.kirupa.com/u/dalewb)\
**Post date:** [March 22, 2007, 11:01pm UTC](https://forum.kirupa.com/t/load-an-image-make-it-rotate-agh/220125/1 "2007-03-22T23:01:57Z")

</div>

Jeez how hard can this be? I am giving up for now, but perhaps one of you can tell me why I can’t simply load an image into flash and rotate it using AS…  
**[note: image is 700x700 pixels in size]**  
Oh it loads all right, but it will not rotate around its center. I know it loads the image in at the top left corner, but I thought the following code would fixt that:

```auto

this.createEmptyMovieClip("george", 0);
george._x = 0;
george._y = 0;
george.createEmptyMovieClip("george2", 2);
george2._x = 700;
george2._y = 700;
var myMCLoader:MovieClipLoader = new MovieClipLoader();
myMCLoader.loadClip("images/ultimateEarth.gif", george.george2);
trace("image");
george.george2._xscale = 50;
george.george2._yscale = 50;
onEnterFrame=function():Void{
    george._rotation += 5;
}

```

I’ve changed the code around so much that what is here may not be the best I’ve come up with so far…
