# Resize the MovieClip

**URL:** <https://forum.kirupa.com/t/resize-the-movieclip/148164>\
**Category:** Uncategorized\
**Created:** [May 17, 2005, 2:55pm UTC](https://forum.kirupa.com/t/resize-the-movieclip/148164 "2005-05-17T14:55:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vljw8202](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vljw8202](https://forum.kirupa.com/u/vljw8202)\
**Post date:** [May 17, 2005, 2:55pm UTC](https://forum.kirupa.com/t/resize-the-movieclip/148164/1 "2005-05-17T14:55:56Z")

</div>

Sorry for re-posting this threat. I asked this question before and was suggested by one of the members to use the following code:

```auto
createEmptyMovieClip("container", 1);
container._x = 50;
container._y = 50;
function preloadf(clip) {
kl = clip.getBytesLoaded();
kt = clip.getBytesTotal();
if (kl>=kt && kl>0) {
clearInterval(myinterval);
container._width = container._height=40;
}
}
loadMovie("p1.jpg", "container");
myinterval = setInterval(preloadf, 50, container); 

```

I created a testing fla using the coce and couldn’t see the picture. Can someone tell me what’s wrong with it? Thanks.
