# How to do a perfect load of a GIF?

**URL:** <https://forum.kirupa.com/t/how-to-do-a-perfect-load-of-a-gif/180439>\
**Category:** Uncategorized\
**Created:** [February 28, 2006, 6:44pm UTC](https://forum.kirupa.com/t/how-to-do-a-perfect-load-of-a-gif/180439 "2006-02-28T18:44:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radd](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/radd/32/1767_2.png) [@radd](https://forum.kirupa.com/u/radd)\
**Post date:** [February 28, 2006, 6:44pm UTC](https://forum.kirupa.com/t/how-to-do-a-perfect-load-of-a-gif/180439/1 "2006-02-28T18:44:00Z")

</div>

i have a GIF and i want it to be loaded dymanicly from XML with

```auto
loadMovie("url", loader_MC);

```

_there are 2 issues:  
 [LIST]  
[]the GIF isn’t playing. my GIF has 4 stages (frames) but when loaded, it stays only on the first one. i need the GIF loaded and begin looping all 4 frames… what’s happeing ?[/LIST][LIST]  
[_]i want the loader\_MC to be resized everytime i resize my Stage. i did this:[/LIST]

```auto
var myListener:Object = new Object ();
myListener.onResize = function () {
   loader_MC._width = Stage.width;
   loader_MC._height = Stage.height;};
Stage.addListener (myListener);

```

The GIF appears distorted, turned upside down and the \_x axis very wrong and out of page… what’s happening, again?

thanks a lot
