Skip to main content
Participant
November 16, 2006
Answered

Handling loadMovie 'Error opening URL

  • November 16, 2006
  • 2 replies
  • 551 views
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
This topic has been closed for replies.
Correct answer
Instead of using loadMovie, you can try loadClip especially for this kind of cases...

2 replies

November 16, 2006
you're welcom
Correct answer
November 16, 2006
Instead of using loadMovie, you can try loadClip especially for this kind of cases...
Participant
November 16, 2006
cheers arunbe,

you are correct, this is a far better methodas it triggers loads of events....

Thanks a lot.