# Need AS that will detect if a jpg exists

**URL:** https://forum.kirupa.com/t/need-as-that-will-detect-if-a-jpg-exists/44128
**Category:** Uncategorized
**Created:** [February 29, 2004, 8:05pm UTC](https://forum.kirupa.com/t/need-as-that-will-detect-if-a-jpg-exists/44128 "2004-02-29T20:05:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gragland](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gragland/32/422_2.png) [@gragland](https://forum.kirupa.com/u/gragland)
#### Post date: [February 29, 2004, 8:05pm UTC](https://forum.kirupa.com/t/need-as-that-will-detect-if-a-jpg-exists/44128/1 "2004-02-29T20:05:14Z")

</div>

Im gonna make an image gallery that loads thumbnails 1.jpg, 2.jpg 3.jpg…etc… into thumbnail mc’s it creates, and when it gets to a number of a file that doesnt exist i want it to stop making thumbnail mc’s. What AS could i use. As of right now it trys to load the jpg that doesnt exist and the preloader keeps going forever.
