# Check if jpg is loaded from folder

**URL:** https://forum.kirupa.com/t/check-if-jpg-is-loaded-from-folder/180675
**Category:** Uncategorized
**Created:** [March 2, 2006, 2:46pm UTC](https://forum.kirupa.com/t/check-if-jpg-is-loaded-from-folder/180675 "2006-03-02T14:46:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rille31](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@rille31](https://forum.kirupa.com/u/rille31)
#### Post date: [March 2, 2006, 2:46pm UTC](https://forum.kirupa.com/t/check-if-jpg-is-loaded-from-folder/180675/1 "2006-03-02T14:46:59Z")

</div>

Hi guys

I have a gallery where Im loading jpegs from a folder  
I stop the timeline and load a jpg based on variabels from an xml file

How do you check if the image exists in the folder  
I already check if the variabel is undefined but I also want to perform some action if the file is unavailable in the folder.

Say for example somebody enteres the image “firstImage.jpg” in the xml and then saves the image as “ffirstImage.jpg”  
Flash wont find that image.
