# loadClip / unloadClip?

**URL:** https://forum.kirupa.com/t/loadclip-unloadclip/237742
**Category:** flash
**Created:** [September 3, 2007, 1:57pm UTC](https://forum.kirupa.com/t/loadclip-unloadclip/237742 "2007-09-03T13:57:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nutty](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Nutty](https://forum.kirupa.com/u/Nutty)
#### Post date: [September 3, 2007, 1:57pm UTC](https://forum.kirupa.com/t/loadclip-unloadclip/237742/1 "2007-09-03T13:57:57Z")

</div>

hi,

this is what i’m using to load a swf file into a movie clip on stage. (mainAnimationHolder)

```php
loadAnimation = function() {
    var animationLoader:MovieClipLoader = new MovieClipLoader();
    var animationLoaderListener:Object = new Object();
    animationLoaderListener.onLoadProgress = function(target,loaded,total) {}
    animationLoaderListener.onLoadComplete = function() {
        // something happens
    }
    animationLoader.addListener(animationLoaderListener);
    animationLoader.loadClip("flash/animation.swf",mainAnimationHolder);
}

```

this works perfectly.  
Now what i want to do is, UNLOAD/DELETE the swf file from mainAnimationHolder.

The function runs on \_root

Could anyone help me?

Thx 🙂
