flash缓冲代码

      flash As 2005-11-10 15:29:00
onClipEvent (load) {
	_x = 300;
	_y = 200;
	speed = 5;
}
onClipEvent (mouseDown) {
	targetx = _root._xmouse;
	targety = _root._ymouse;
}
onClipEvent (enterFrame) {
	distx = targetx-_x;
	disty = targety-_y;
	movex = distx/speed;
	movey = disty/speed;
	_x += movex;
	_y += movey;
}
标签集:TAGS:
回复Comments() 点击Count()
喜欢就顶一下

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}