loadClip return value always TRUE

Greetings,

so here i am, trying to preload some content into my page and filter out possibility of error when fetching preloaded parts using loadClip method.

function loadContent(sLoadContent, nContentX, nContentY){

    this.createEmptyMovieClip("mcHolder", 40);

    var oListener:Object = new Object();

    oListener.onLoadStart = function(){
        preloader.preloadStart(mcHolder);
    };

    oListener.onLoadComplete = function(holder:MovieClip) {
        // position preloaded content etc.
    };

    var mclLoader:MovieClipLoader = new MovieClipLoader();
        var val = mclLoader.loadClip(sLoadContent, mcHolder);
        if(!val){
                 loadContent("error.swf", 300, 280);
        }
        mclLoader.addListener(oListener);
}

Now the problem is with value returned by loadClip method. It should be false if there was error fetching content from HDD/server, but even if there is such error(and i get Output pannel message "Error opening URL “file:///C:/test.swf” " ), variable “val” is still TRUE (guess it should be FALSE).

Q: How can i filter such error when file is not available on server so that i can take appropriate action?

Thanks for helping out! :slight_smile: