# Percentage preloader

**URL:** <https://forum.kirupa.com/t/percentage-preloader/186156>\
**Category:** Uncategorized\
**Created:** [April 19, 2006, 2:27pm UTC](https://forum.kirupa.com/t/percentage-preloader/186156 "2006-04-19T14:27:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyryan](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@andyryan](https://forum.kirupa.com/u/andyryan)\
**Post date:** [April 19, 2006, 2:27pm UTC](https://forum.kirupa.com/t/percentage-preloader/186156/1 "2006-04-19T14:27:30Z")

</div>

hi,

icurrently have a preloader for my website which works by stretching the x value of a rectangle according to the percentage of the site loaded-very typical. I would instead like a movie clip to play a frame number corresponding to the percentage of website loaded ie. i would have a hundred frames. Is this possible?:ear:

---

<div class="post-metadata">

**Author:** ![dudeman001](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dudeman001/32/2161_2.png) [@dudeman001](https://forum.kirupa.com/u/dudeman001)\
**Post date:** [April 19, 2006, 8:36pm UTC](https://forum.kirupa.com/t/percentage-preloader/186156/2 "2006-04-19T20:36:03Z")

</div>

I believe that all you would have to do is where the actionscript for the preloader is write

if(percent\_loaded \< 0 and \> 2){  
gotoAndStop(“1percent”);  
}

and…

if(percent\_loaded \< 49 and \> 51){  
gotoAndStop(“50percent”);  
}

just put as many of those you needed. just change the percent\_loaded to what ever your loading number variable is, and it should work…if not, I’ll work on something.
