# How to acquire file\_exists in AS3?

**URL:** <https://forum.kirupa.com/t/how-to-acquire-file-exists-in-as3/256464>\
**Category:** flash\
**Created:** [April 3, 2008, 9:40am UTC](https://forum.kirupa.com/t/how-to-acquire-file-exists-in-as3/256464 "2008-04-03T09:40:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taurus76](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@taurus76](https://forum.kirupa.com/u/taurus76)\
**Post date:** [April 3, 2008, 9:40am UTC](https://forum.kirupa.com/t/how-to-acquire-file-exists-in-as3/256464/1 "2008-04-03T09:40:15Z")

</div>

Hi!

I’m making huge map using tiles. There is a lot of white tiles so I would like to optimize it deleting them from server and make a if statment. Something like file\_exists from PHP:  
if (there is no file with name 1-2-24.jpg) {  
addWhiteRect();  
}  
Is it possible in AS3? Not to try loading the file and use 404 as my solution (I think it is not to good for server, am I right?)?

Regards  
Taurus76
