Advanced preloader/animation

hey guys.
im trying to create a preloader which i can do all by my self :nerd:

im trying to make it a bit more advanced but im not sure exactly how to do this. this is how the preloader should work.

the preloader plays a 5 frame animation before the actual loading animation. the loading animation is not a bar preloader. its just a spinning object. so the object spins around while the content is being loaded and after the content is loaded, the preloader completes the animation then plays another 5 frame animation before the movie continues.

so the thing im trying to lean is basically how to make flash complete an animation before it moves on to the next thing…