How to preload loadmovie?

Hey people! This is the problem:

I’ve discovered that my .swf becomes verry big if I just import every picture!
So that why I want to load the picture’s into the swf. On kirupa i found this code and it works verry nice:

on(press){
loadMovie(“loadme.jpg”,_root.theTarget);
}

But I also want to make a preload bar, so you can see how manny bytes are loaded.

I’ve done some tutorials on kirupa, and now i know how to make a preloader and i know how to use loadMovie… but i cant script it togetter :puzzled:
so i hope some of you guys know how to do this!
thanks