aiyi_text = "第1时机欢迎您参加2008北京奥运会!";
aiyi_len = aiyi_text.length;
n = 0;
while (n<aiyi_len)
{
_root.createEmptyMovieClip("aiyiT"+n, n)// depth:景深,指重叠程度
t = aiyi_text.substr(n, 1);
with (_root["aiyiT"+n])
{
createTextField("aiyi_t", 2, 0, 0, 20, 20);
aiyi_t.text = t;
aiyi_t.textColor = 0xFF0000;
//trace(aiyi_t.text)
}
n++;
}
startDrag(aiyiT0, true);
_root.onLoad = function() {
speed = 3;
};
_root.onEnterFrame = function()
{
aiyi = 1;
while (aiyi<=_root.aiyi_len)
{
_root["aiyiT"+aiyi]._x += 5+(_root["aiyiT"+(aiyi-1)]._x-_root["aiyiT"+aiyi]._x)/speed;
_root["aiyiT"+aiyi]._y += (_root["aiyiT"+(aiyi-1)]._y-_root["aiyiT"+aiyi]._y)/speed;
aiyi++;
}
};
_root.Mouse.hide();
|