# Some problems with unload movie

**URL:** <https://forum.kirupa.com/t/some-problems-with-unload-movie/188410>\
**Category:** Uncategorized\
**Created:** [May 7, 2006, 2:50pm UTC](https://forum.kirupa.com/t/some-problems-with-unload-movie/188410 "2006-05-07T14:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![azuuh](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@azuuh](https://forum.kirupa.com/u/azuuh)\
**Post date:** [May 7, 2006, 2:50pm UTC](https://forum.kirupa.com/t/some-problems-with-unload-movie/188410/1 "2006-05-07T14:50:26Z")

</div>

so i have this .fla file with the text following the mousecursor:

```auto
Text = "C8H10N4O2";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "_sans";
letterformat.align = "center";
letterformat.size = "10";
letterformat.color = "0xFFFFFF";
spacing = 3;
speed = 2;
for (var LTR = 0; LTR<letters.length; LTR++) {
    mc = _root.createEmptyMovieClip(LTR+"l", LTR);
    mc.createTextField(letters[LTR]+"t", LTR, LTR*spacing, 10, 20, 20);
    with (mc[letters[LTR]+"t"]) {
        text = letters[LTR];
        setTextFormat(letterformat);
        selectable = false;
    }
    if (LTR) {
        mc.prevClip = _root[(LTR-1)+"l"];
        mc.onEnterFrame = function() {
            this._x += (this.prevClip._x-this._x+5)/speed;
            this._y += (this.prevClip._y-this._y)/speed;
        };
    } else {
        mc.onEnterFrame = function() {
            this._x += (_root._xmouse-this._x+10)/speed;
            this._y += (_root._ymouse-this._y)/speed;
        };
    }
}

```

and i have it on a timeline to 3sec and then i have a script:

```auto
stop();
_root.ruoka.unloadMovie();

```

and i have a other .fla file who has :

```auto
on (release) {
    loadMovie("hiirikoodi.swf", "ruoka");

} 

```

on a button and it works fine but when the 3sec is gone and it should unload the first file with the mousecursor it will just stop, the text after the cursor will not disappear what id like it to do, it just stops and nothing happends, it wont follow the cursor anymore…

any ideas?
