# Creating a preloader for the LOADER component

**URL:** <https://forum.kirupa.com/t/creating-a-preloader-for-the-loader-component/275913>\
**Category:** flash\
**Created:** [November 20, 2008, 12:06am UTC](https://forum.kirupa.com/t/creating-a-preloader-for-the-loader-component/275913 "2008-11-20T00:06:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guinness](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@guinness](https://forum.kirupa.com/u/guinness)\
**Post date:** [November 20, 2008, 12:06am UTC](https://forum.kirupa.com/t/creating-a-preloader-for-the-loader-component/275913/1 "2008-11-20T00:06:10Z")

</div>

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
