Preloading Effects

hey guys i want to learn how you people make those preloaders when the site loads each peart then loads separtly and i want to know how you make it load when you click ona botton what is action script that you use to get the movie then load it.

this is what i mean.

Thankx

ICED T:p: