# Preloader with movieclip x position instead of width

**URL:** <https://forum.kirupa.com/t/preloader-with-movieclip-x-position-instead-of-width/112984>\
**Category:** Uncategorized\
**Created:** [June 13, 2004, 9:47pm UTC](https://forum.kirupa.com/t/preloader-with-movieclip-x-position-instead-of-width/112984 "2004-06-13T21:47:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [June 13, 2004, 9:47pm UTC](https://forum.kirupa.com/t/preloader-with-movieclip-x-position-instead-of-width/112984/1 "2004-06-13T21:47:28Z")

</div>

Hello, I’m making a preloader for a site in which I need an mc to move across the screen instead of the normal width change. What is the AS for making the position change?

My current AS (would work if I wanted width change) is:

```auto
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
 this.gotoAndPlay(3);
}  

```

So what would I need to change?
