flash鼠标拖影怎么弄
- 提问者网友:鼻尖触碰
- 2021-04-12 23:41
- 五星知识达人网友:西风乍起
- 2021-04-12 23:52
需要设置代码、
- 1楼网友:荒野風
- 2021-04-13 01:14
有些问题是不能纸上谈兵的。。就象你的问题。
- 2楼网友:野慌
- 2021-04-13 00:47
//======CODE======
onClipEvent (load) {
StartSize = 20;
MaxStep =20;
SizeIncrement = 15;
for (var i = 1; i<=MaxStep; i++) {
duplicateMovieClip(Tail_mc, "Tail"+i, i);
with (eval("Tail"+i)) {
_xscale = StartSize+(i*SizeIncrement);
_yscale = StartSize+(i*SizeIncrement);
_alpha = 100-(100/MaxStep)*(i-1);
}
}
Tail_mc._visible = false;
}
onClipEvent (enterFrame) {
Tail1._x = _xmouse;
Tail1._y = _ymouse;
for (var i = 2; i<=MaxStep; i++) {
Temp = eval("Tail"+i);
Temp.xdistance = (eval("Tail"+(i-1))._x-Temp._x)/2+Temp.xdistance*0.3;
Temp.ydistance = (eval("Tail"+(i-1))._y-Temp._y)/2+Temp.ydistance*0.3;
Temp._x += Temp.xdistance;
Temp._y += Temp.ydistance;
}
}
//====CODE END====
注:1)跟随鼠标的图片,设成影片,其名称为:Tail_mc
2)发布设置——flash——版本——Flash player 6