Answered
Handling loadMovie 'Error opening URL
Hello
I am loading pictures into a movie clip using loadMovie, the jpg path is read from an xml file. If the file does not exist flash generates an 'Error opening URL '. I want to be able to trap this error and produce a message to say the picture does not exist.
function updateSlide(newSlideNode) { // update photo, description, and status field
imagePath = newSlideNode.attributes.jpegURL;
infoBox.photoText = newSlideNode.firstChild.nodeValue;
hours = imagePath.substring(10,15);
loadMovie(imagePath, targetPhoto.photoLoader);
targetPhoto.gotoAndPlay(1);
}
Can anyone help please
I am loading pictures into a movie clip using loadMovie, the jpg path is read from an xml file. If the file does not exist flash generates an 'Error opening URL '. I want to be able to trap this error and produce a message to say the picture does not exist.
function updateSlide(newSlideNode) { // update photo, description, and status field
imagePath = newSlideNode.attributes.jpegURL;
infoBox.photoText = newSlideNode.firstChild.nodeValue;
hours = imagePath.substring(10,15);
loadMovie(imagePath, targetPhoto.photoLoader);
targetPhoto.gotoAndPlay(1);
}
Can anyone help please