Filling a bar

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.

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

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