# Remove Movieclip

**URL:** <https://forum.kirupa.com/t/remove-movieclip/233600>\
**Category:** flash\
**Created:** [July 25, 2007, 10:58am UTC](https://forum.kirupa.com/t/remove-movieclip/233600 "2007-07-25T10:58:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_rochford](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@g\_rochford](https://forum.kirupa.com/u/g_rochford)\
**Post date:** [July 25, 2007, 10:58am UTC](https://forum.kirupa.com/t/remove-movieclip/233600/1 "2007-07-25T10:58:10Z")

</div>

Hi all

I’m using this actionscript to call some various .swf files randomly into my main movie file to create a sort of starfield effect of words.

```auto
var mc = this.createEmptyMovieClip("mc", 1);
function nextRandom() {
    var swf = this._url.substr(0, this._url.lastIndexOf("/")+1)+"swf/image"+Math.floor(Math.random()*26)+".swf";
    mc.loadMovie(swf);
}
nextRandom();
this.onEnterFrame = function() {
    if (mc._currentframe>=mc._totalframes) {
        nextRandom();
    }
};

```

However it doesnt seem to work in IE 7. Does anybody know why? or even better a good solution.

Greg
