so i have this .fla file with the text following the mousecursor:
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:
stop();
_root.ruoka.unloadMovie();
and i have a other .fla file who has :
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?