# Preloader problem

**URL:** <https://forum.kirupa.com/t/preloader-problem/177718>\
**Category:** Uncategorized\
**Created:** [February 4, 2006, 3:55pm UTC](https://forum.kirupa.com/t/preloader-problem/177718 "2006-02-04T15:55:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_s](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@tom\_s](https://forum.kirupa.com/u/tom_s)\
**Post date:** [February 4, 2006, 3:55pm UTC](https://forum.kirupa.com/t/preloader-problem/177718/1 "2006-02-04T15:55:49Z")

</div>

hi everybody  
i’m making preloader and i have the bars width increase on both sides, i want to know how to make two vector images follow the bars?:beam:  
i found AS code:  
[AS]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)+"%";  
\_root.pFollow.\_x = Math.round(getPercent)+100 //offset  
//to figure out the offset, you need to find how far in the movie  
// the percentage box starts, soo if its 100, you would add 100 above  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}[/AS]  
[AS]\_root.pFollow.\_x = Math.round(getPercent)+100 [/AS]  
follow right side of bar, how to make second vector image follow left side of bar?

thanks!
