File loading question

:alien:
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

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

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</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:


//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