# Problem with Tween/AS Preloader

**URL:** <https://forum.kirupa.com/t/problem-with-tween-as-preloader/208101>\
**Category:** flash\
**Created:** [November 24, 2006, 10:59pm UTC](https://forum.kirupa.com/t/problem-with-tween-as-preloader/208101 "2006-11-24T22:59:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliffio](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Eliffio](https://forum.kirupa.com/u/Eliffio)\
**Post date:** [November 24, 2006, 10:59pm UTC](https://forum.kirupa.com/t/problem-with-tween-as-preloader/208101/1 "2006-11-24T22:59:16Z")

</div>

Hello. I have been working on this:

[http://www.kirupa.com/developer/actionscript/tween\_as\_preloader.htm](http://www.kirupa.com/developer/actionscript/tween_as_preloader.htm)

Everything is Ok, but I need the text (percent loaded) not to go from left to right, but from the bottom to top, because my preloader loads the movie content in that direction.

I´ve been trying to achieve this by modifying the “x” values in this script:

```auto

//setting up variables to display
//percentage loaded in the text box.
loaded_bytes = Math.round(_root.getBytesLoaded());
loaded_total = Math.round(_root.getBytesTotal());
total_percent = (loaded_bytes/loaded_total)*100;
_root.loaded_text = Math.round(total_percent);
//We apply the code to make the text change its 
//X position according to the position of progress
//bar.
startpoint = bar._x
_root.text._x = startpoint + (_root.bar._currentframe*2.5);

```

But I cannot get it…could you help me please?

Thanx!

E.
