External/Reusable Preloader

I’m looking for a tutorial or help with creating an external/reusable preloader that I could easily call by just adding a class or swf to any project.