Detecting if a file exits in ActionScript 
A useful tutorial by Guy Watson from Flash Guru on "Detecting if a file exists" ::: http://www.flashguru.co.uk/000310.php
fileExists=new LoadVars();
fileExits._parent=this;
fileExists.onLoad=function(success)
{
//success is true if the file exists, false if it doesnt
if(success)
{
//the file exists
var nm=this._parent.createEmptyMovieClip("swfHolder",1); //so create a movieclip
nm.loadMovie("myfile.swf"); //and load our .swf file into it
}
}
fileExists.load("myfile.swf") //initiate the test

February 7, 2003 10:17 PM