|
其实这个效果很简单的。一段代码就可以了。
i_text = "39度家族社区www.39c.cc "; i_len = i_text.length; n = 0; while (n<i_len) { _root.createEmptyMovieClip("iT"+n, n); t = i_text.substr(n, 1); with (_root["iT"+n]) { createTextField("i_t", 2, 0, 0, 20, 20); i_t.text = t; //trace(aiyi_t.text) } n++; } startDrag(iT0, true); _root.onLoad = function() { speed = 3; }; _root.onEnterFrame = function() { i = 1; while (i<=_root.i_len) { _root["iT"+i]._x += 5+(_root["iT"+(i-1)]._x-_root["iT"+i]._x)/speed; _root["iT"+i]._y += (_root["iT"+(i-1)]._y-_root["iT"+i]._y)/speed; i++; } }; _root.Mouse.hide();
使用方法:在FLASH里新建一个层,然后按下F9,把代码复制进去,然后把39家族社区 www.39c.cc 改成你要的文字就可以了。
|