flash as 闪动菜单代码
提供一款flas易做图菜单 制作效果哦,看看这段代码吧,我们用的是以x,y坐标来实现滑动菜单效果哦
duplicateMovieClip("line", "newLine1", 1);
newLine1._x = p1._x+p1.kp._x;
newLine1._y = p1._y+p1.kp._y;
newLine1._xscale = (p2._x+p2.kp._x)-(p1._x+p1.kp._x);
newLine1._yscale = (p2._y+p2.kp._y)-(p1._y+p1.kp._y);
duplicateMovieClip("line", "newLine2", 2);
newLine2._x = p2._x+p2.kp._x;
newLine2._y = p2._y+p2.kp._y;
newLine2._xscale = (p3._x+p3.kp._x)-(p2._x+p2.kp._x);
newLine2._yscale = (p3._y+p3.kp._y)-(p2._y+p2.kp._y);
duplicateMovieClip("line", "newLine3", 3);
newLine3._x = p3._x+p3.kp._x;
newLine3._y = p3._y+p3.kp._y;
newLine3._xscale = (p4._x+p4.kp._x)-(p3._x+p3.kp._x);
newLine3._yscale = (p4._y+p4.kp._y)-(p3._y+p3.kp._y);
duplicateMovieClip("line", "newLine4", 4);
newLine4._x = p4._x+p4.kp._x;
newLine4._y = p4._y+p4.kp._y;
newLine4._xscale = (p5._x+p5.kp._x)-(p4._x+p4.kp._x);
newLine4._yscale = (p5._y+p5.kp._y)-(p4._y+p4.kp._y);
duplicateMovieClip("line", "newLine5", 5);
newLine5._x = p5._x+p5.kp._x;
newLine5._y = p5._y+p5.kp._y;
newLine5._xscale = (p6._x+p6.kp._x)-(p5._x+p5.kp._x);
newLine5._yscale = (p6._y+p6.kp._y)-(p5._y+p5.kp._y);
注意:元件的名称叫p1...p6才能实现哦。
补充:flash教程,动画技术