Text = "Type Your Text Here"; letters = Text.split(""); letterformat = new TextFormat(); letterformat.font = "Verdana"; letterformat.align = "center"; letterformat.size = "10"; spacing = 8; speed = 3; for (var LTR = 0; 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; }; } }Change "Type Your Text Here" text in this code.
Add Mouse Following Text in Flash Actionscript
Add following Actionscript code inside your flash action scripting codes.
0 comments:
Post a Comment
Ask anything about this Tutorial.