# Filling a bar

**URL:** <https://forum.kirupa.com/t/filling-a-bar/35443>\
**Category:** flash\
**Created:** [November 14, 2003, 2:38am UTC](https://forum.kirupa.com/t/filling-a-bar/35443 "2003-11-14T02:38:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eXa\_bOy](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@eXa\_bOy](https://forum.kirupa.com/u/eXa_bOy)\
**Post date:** [November 14, 2003, 2:38am UTC](https://forum.kirupa.com/t/filling-a-bar/35443/1 "2003-11-14T02:38:01Z")

</div>

hi there all you Flash Gurus!

im a newbie to the flash world, i have a project im working on, its like a preloader, but i want to fill the bar depending on a 2 values passed from the browser variables a & b

varA = total  
varB = progress

Check out the attached image. thats the bar

the part im totally stuck with is making the green bar move from 0 to the point specified in the variable… so basically the green bar stops at the percentage of varA. the total width of the movie is the same as depicted in the image, its just the internal variables that change.

if you could help me out it would be MUCH appreciated. i know ActionScript is needed, its just that crap im lost with. I guess all im asking for is how do i get that symbol to move across the screen.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 14, 2003, 3:03am UTC](https://forum.kirupa.com/t/filling-a-bar/35443/2 "2003-11-14T03:03:23Z")

</div>

Attach the images so i can make a quick example for you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 14, 2003, 5:09am UTC](https://forum.kirupa.com/t/filling-a-bar/35443/3 "2003-11-14T05:09:34Z")

</div>

here is a slap-together flash file, i have to re-draw the “nice” looking graphics, ill do that once the concept is proven.

thanks guys
