# Check if file excists

**URL:** <https://forum.kirupa.com/t/check-if-file-excists/203778>\
**Category:** Uncategorized\
**Created:** [October 14, 2006, 12:17am UTC](https://forum.kirupa.com/t/check-if-file-excists/203778 "2006-10-14T00:17:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this\_me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this_me/32/2683_2.png) [@this\_me](https://forum.kirupa.com/u/this_me)\
**Post date:** [October 14, 2006, 12:17am UTC](https://forum.kirupa.com/t/check-if-file-excists/203778/1 "2006-10-14T00:17:31Z")

</div>

hi there.

in php there is a function if\_file\_excists

Is there something like that in actionscript?

In a content management system i build people can upload images or small swf’s

so i like to check if they uploaded the image load the image otherwise load the swf

i add a loadMovie script wich loadsthe excisting file into movieclip and getting the data from a xml file

is this possible (the if file excist part)

Thanx
