# File loading question

**URL:** <https://forum.kirupa.com/t/file-loading-question/21679>\
**Category:** Uncategorized\
**Created:** [May 24, 2003, 9:15pm UTC](https://forum.kirupa.com/t/file-loading-question/21679 "2003-05-24T21:15:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elios](https://avatars.discourse-cdn.com/v4/letter/e/2acd7d/32.png) [@Elios](https://forum.kirupa.com/u/Elios)\
**Post date:** [May 24, 2003, 9:15pm UTC](https://forum.kirupa.com/t/file-loading-question/21679/1 "2003-05-24T21:15:48Z")

</div>

👽  
I’m having trouble figuring this one out. My question is as follows: “Is there any possible way to determine whether or not a file exists before [attempting] loading it?” Anyway, it’s an image that I’m trying to load, but that really shouldn’t matter.

Later,  
–Elios

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 2:26am UTC](https://forum.kirupa.com/t/file-loading-question/21679/2 "2003-05-25T02:26:53Z")

</div>

well you can disable and enable buttons, so you can’t load the file twice

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 12:33pm UTC](https://forum.kirupa.com/t/file-loading-question/21679/3 "2003-05-25T12:33:51Z")

</div>

Sorry, that was late at night, I should have explained myself better. Follow this link to the project: \<a href=“[http://wryle.tripod.com/club/main.html](http://wryle.tripod.com/club/main.html)”\>[http://wryle.tripod.com/club/main.html](http://wryle.tripod.com/club/main.html)\</a\>. Alright, after everything loads (which might take a moment when the server is laggy), in the upper left hand corner there is a box. Now, I’m not new to flash, but I’m stumped here. I want something like the loadVars success thing, where you can determine if it loaded:

```php

//loadvars object: loadIt
loadIt.onLoad = function(success) {
if(success){ 
//it loaded
} else if (!success) {
//it didn't load
}
};

```

If there’s any way I could do that for a jpeg, that’s what I’m looking for.

Thanks again,  
–Elios
