var disWord = "amyflash";
var dConst = 4;
var xConst = 30;
var yConst = 0;
var sConst = 4.000000E-001;
var count = disWord.length;
var i = 1;
var mc_array:Array = new Array();
mc_array["mc0"]=mc0;
while (i < count)
{
mc_array["mc" + i] = new MCC();
addChild(mc_array["mc" + i]);
mc_array["mc" + i].scaleX = mc_array["mc" + i].scaleY = (1 - sConst + sConst * (1 - i / count));
++i;
} // end while
addEventListener(Event.ENTER_FRAME,doRun);
function doRun(e:Event)
{
this.mc0.x= mouseX;
this.mc0.y = mouseY;
for (var t = 1; t < count; ++t)
{
var _loc3 = xConst * (1 - sConst + sConst * (1 - t / count));
var _loc4 = yConst * (1 - sConst + sConst * (1 - t / count));
mc_array["mc" + t].x += (mc_array["mc" + (t - 1)].x + 1.500000E+000 * _loc3 - mc_array["mc" + t].x) / dConst;
mc_array["mc" + t].y += (mc_array["mc" + (t - 1)].y + 1.500000E+000 * _loc4 - mc_array["mc" + t].y) / dConst;
} // end of for
};
也就是把as2版本的翻译成as3了,哈哈,其中mc0就是场景中的元件名