# loadClip return value always TRUE

**URL:** <https://forum.kirupa.com/t/loadclip-return-value-always-true/174097>\
**Category:** flash\
**Created:** [January 2, 2006, 9:04pm UTC](https://forum.kirupa.com/t/loadclip-return-value-always-true/174097 "2006-01-02T21:04:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [January 2, 2006, 9:04pm UTC](https://forum.kirupa.com/t/loadclip-return-value-always-true/174097/1 "2006-01-02T21:04:21Z")

</div>

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.

```auto
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! 🙂
