# Checking if an External Swf is there then removing

**URL:** <https://forum.kirupa.com/t/checking-if-an-external-swf-is-there-then-removing/281755>\
**Category:** flash\
**Created:** [February 12, 2009, 11:10pm UTC](https://forum.kirupa.com/t/checking-if-an-external-swf-is-there-then-removing/281755 "2009-02-12T23:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyuuJin](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@RyuuJin](https://forum.kirupa.com/u/RyuuJin)\
**Post date:** [February 12, 2009, 11:10pm UTC](https://forum.kirupa.com/t/checking-if-an-external-swf-is-there-then-removing/281755/1 "2009-02-12T23:10:35Z")

</div>

I have checked the forums for a solution but I cant seem to find anything that works quite like I need it to. Or maybe I just don’t understand?

Here is pretty much what my code is…

```auto
 

function BiographyExternal():void
            {
                var PageBios:URLRequest = new URLRequest("Biographies.swf");
                var BiographiesLoader:Loader = new Loader();
                BiographiesLoader.load(PageBios);
                addChild(BiographiesLoader);
                
                BiographiesLoader.y = 100;
                BiographiesLoader.x = 20;
            }

```

This works when I want to add a movie clip, but what if I want to try and remove it? I need to check if it exists first right?

Basically in another function I want to check if this file is loaded and if it is, I want to remove it.
