hi there!
i was just following the mouse tutorial by Syko, but…
i get only error messages and bad behavior when i incresease the text lenght…
let me explain it a little bit…
this is the actionscript
Text = “kirupa”;
letters = Text.split(“”);
letterformat = new TextFormat();
letterformat.font = “Verdana”;
letterformat.align = “center”;
letterformat.size = “10”;
spacing = 8;
speed = 3;
for (L=0; L<letters.length; L++) {
_root.createEmptyMovieClip(letters[L], L);
_root[letters[L]].createTextField(letters[L]+“t”, L, L*spacing, 10, 20, 20);
with (_root[letters[L]][letters[L]+“t”]) {
text = letters[L];
setTextFormat(letterformat);
selectable = false;
}
if (L>0) {
_root[letters[L]].id = L;
_root[letters[L]].onEnterFrame = function() {
this._x += (_root[letters[this.id-1]]._x-this.lastX+5)/speed;
this._y += (_root[letters[this.id-1]]._y-this.lastY)/speed;
this.lastX = this._x;
this.lastY = this._y;
};
} else {
_root[letters[L]].onEnterFrame = function() {
this._x += (_root._xmouse-this.lastX+10)/speed;
this._y += (_root._ymouse-this.lastY)/speed;
this.lastX = this._x;
this.lastY = this._y;
};
}
}
you see
Text = “kirupa”;
… well, try to increse the text lenght, for example… replace “kirupa” with “thisisalongertext” and you’ll see what iam talking about…
thanks for your time…
best regards