I was seaching for an easy way in AS3 to check if a file exists before loading it. There was not very much about so I wrote these classes to do it.
There are two classes, the FileLoaderUtils and the UtilEvent. the FileLoaderUtils has the function doesFileExist(url:String) and when called the class uses the URLStream class to attempt to load the file. If the file exists a UtilEvent.FILE_EXISTS event is dispatched. If the URL is incorrect or the file doesn not exist a UtilEvent.FILE_NOT_FOUND event is dispatched.
See the attached zip for the classes. Hope the may be of use to someone.