2005/11/10 | flash缓冲代码
类别(flash As) | 评论(0) | 阅读(777) | 发表于 15:29
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;
}
0

评论Comments

日志分类
首页[193]
flash As[107]
有的没的[59]
数码照片[4]
自由世界[19]
blender[4]