I am loading an image in from a directory.
How can I check in my code to see if the file exists (Pic1.JPG) or not.
Here is the code I have so far
Thanks
How can I check in my code to see if the file exists (Pic1.JPG) or not.
Here is the code I have so far
Code:
var strPic1:String = "RotatingPictures/Pic1.JPG";
_root.createEmptyMovieClip("pic1_container", 2);
_root.pic1_container.loadMovie(strPic1)
_root.pic1_container._x = 1;
_root.pic1_container._y = 1;