Sorry but I already using this to detect for omitted entries.
What I am trying to do is detect if the file exists, not if the name is blank. I can load a named movie into Flash if the movies no longer exist on the server.
File list on server:-
movie.swf
movie.html
movie_list.txt
background.swf
default_background.swf
Code:
movie="mybackground.swf";
background_level=2;
loadmovienum(movie,background_level);
FLASH
Oh! mybackground.swf doesn't exist,
nevermind I'll load in default_background.swf
I know there are some work arounds, but I want to make it as functional as possible. To make it available for Text, Movies, Graphics, Sounds etc...
Oh! mysound.mp3 doesn't exist,
nevermind I'll load in default_sound.mp3
Oh! mysound.wav doesn't exist
nevermind I'll load in default_mysound.wav
Oh! mymovie_list.swf doesn't exist,
nevermind I'll load in default_movie_list.txt
etc....
I could use PHP - int file_exists(string filename);
but I want to make it multiplatform and I know of one person that wants a copy that doesn't have any server side functionality just web space.