# Tween/AS Preloader help

**URL:** <https://forum.kirupa.com/t/tween-as-preloader-help/238346>\
**Category:** flash\
**Created:** [September 10, 2007, 1:03pm UTC](https://forum.kirupa.com/t/tween-as-preloader-help/238346 "2007-09-10T13:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neznanec](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@neznanec](https://forum.kirupa.com/u/neznanec)\
**Post date:** [September 10, 2007, 1:03pm UTC](https://forum.kirupa.com/t/tween-as-preloader-help/238346/1 "2007-09-10T13:03:00Z")

</div>

I have a small problem. I created preloader following Tween/AS preloader tutorial. Now I want to put the preloader into a movieclip so I can center it on stage with:

```auto
preload._x = Stage.width/2;
preload._y = Stage.height/2;

```

Everything works except that it skips outro animation and goes straight to stage 2. Could somebody please point me in the right direction?

My code on frame 20 of MC preload:

```auto
 loaded_bytes = Math.round(_root.getBytesLoaded());
loaded_total = Math.round(_root.getBytesTotal());
total_percent = (loaded_bytes/loaded_total)*100;
_root.preload.loaded_text = Math.round(total_percent);

startpoint = _root.preload.bar._x
_root.preload.text._x = startpoint + (_root.preload.bar._currentframe*2.5);

```

frame 21:

```auto
if (total_percent == 100) {
    play();
} else {
    gotoAndPlay(20);
}

```

last frame of preloader:

```auto
unloadMovie(this);

gotoAndPlay("Scene 2", 1);

```

any help would be very appreciated
