Creating a preloader for the LOADER component

hey all,

I am creating a photo gallery using the loader component, however some of the jpgs are around 240k so I want to add a custom preloader. The issue I am having trouble with is… how do I set up a preloader that I have made to activate when the loader component loads a new jpg via the myLoader.contentPath = “sample.jpg”???

I am using a sliding thumbnail gallery w/ a static main image behind.

Anyone have a tip for settingup a preloader for the loader? Never had much luck making preloader.
THX