Preloader with animation

Hello i would like to make a preloader with an animation f.e. a sigarette that is getting smaller as the percentage gets higher. How can i fix this with actionscript?

bump :slight_smile: