I'm using onLoadError, pretty much right from the Help example. I want to do nothing when a URL is not available. Instead I still get "Error opening URL ..." in the Output window. I am loading about 60 images from Web cameras. When one can't be loaded I want to ignore it. Here is the code.
- HTML: Select all
var loadListener:Object = new Object();
loadListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number) {
//trace(">> loadListener.onLoadError()");
//trace(">> ==========================");
//trace(">> errorCode: " + errorCode);
//trace(">> httpStatus: " + httpStatus);
}
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
var mc5_4:MovieClip = this.createEmptyMovieClip("mc5_4", this.getNextHighestDepth());
mcLoader.loadClip("http://213.243.80.55:8383/", mc5_4);
I think I got the code pasted in correctly. Thanks,
Darren