首页<<Flash双色球碰撞
下载Flash红球篮球双色球碰撞【注:左键全屏播放、右键另存下载】

第1帧:
set("move_x1",10)
set("move_y1",10)
set("move_x2",10)
set("move_y2",10)
第2帧:
set("x1",getProperty("ball1",_x))
set("y1",getProperty("ball1",_y))
if(x1>=550-32)
set("move_x1",-(move_x1))
else if(x1<=32)
set("move_x1",-(move_x1))
endif
if(y1>=400-32)
set("move_y1",-(move_y1))
else if(y1<=32)
set("move_y1",-(move_y1))
endif
set("x2",getProperty("ball2",_x))
set("y2",getProperty("ball2",_y))
if(x2>=550-32)
set("move_x2",-(move_x2))
else if(x2<=32)
set("move_x2",-(move_x2))
endif
if(y2>=400-32)
set("move_y2",-(move_y2))
else if(y2<=32)
set("move_y2",-(move_y2))
endif
zz=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)<= 65*65
if(zz==1)
{
set("move_x1",-(move_x1))
set("move_y1",-(move_y1))
第3帧:
setProperty("ball1",_x,x1-move_x1)
setProperty("ball1",_y,y1-move_y1)
setProperty("ball2",_x,x2-move_x2)
setProperty("ball2",_y,y2-move_y2)
gotoAndPlay(2)
功能设置:
on (release) {fscommand("fullscreen","true")}
on (release) {fscommand("fullscreen","false")}
on (release) {fscommand("quit","true")}