# Check for file

**URL:** https://forum.kirupa.com/t/check-for-file/220906
**Category:** Uncategorized
**Created:** [March 30, 2007, 9:19am UTC](https://forum.kirupa.com/t/check-for-file/220906 "2007-03-30T09:19:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![magjac](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@magjac](https://forum.kirupa.com/u/magjac)
#### Post date: [March 30, 2007, 9:19am UTC](https://forum.kirupa.com/t/check-for-file/220906/1 "2007-03-30T09:19:09Z")

</div>

Hi everybody!

I have a movieclip where I want it to check for a file. If it finds the file (file1.xml) i want it to gotoAndStop at frame 2 in the movie clip.

My code:

onClipEvent (enterFrame) {  
getURL (“vinst1.xml”);  
if(success)  
{  
gotoAndStop(2)  
}

}

Anyone know of a command to replace “getURL” with that will check for the file and not load it?
