Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check for missing files 1

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
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
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;
Thanks
 
Howdy oldnewbie,

You rock, star to you. Works perfect.

ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top