# loadMovieNum: Check if SWF exists

**URL:** <https://forum.kirupa.com/t/loadmovienum-check-if-swf-exists/274024>\
**Category:** flash\
**Created:** [October 23, 2008, 9:08pm UTC](https://forum.kirupa.com/t/loadmovienum-check-if-swf-exists/274024 "2008-10-23T21:08:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thalamus](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Post date:** [October 23, 2008, 9:08pm UTC](https://forum.kirupa.com/t/loadmovienum-check-if-swf-exists/274024/1 "2008-10-23T21:08:57Z")

</div>

Hello:

I’m using loadMovieNum to load pages of content into the root movie.

I have the name of the SWF file set as a string variable, then:  
loadMovieNum(var + “.swf”, _\_levelN_);

I want to be able to monitor the function so that if the SWF doesn’t exist, I can open an “page not found” error movie (like 404 Error). I want to keep loading my content into specific levels; the only thing I want to monitor is whether the SWF exists or not.

(I know when compiling you get an “error loading file” in the Output Panel when loadMovieNum tries to load a SWF that doesn’t exist. I want to be able to monitor this at run-time with ActionScript.)

_As I submit this, I hear some of you saying "Why don’t you use MovieClipLoader.onLoadError() ?_
