
mc碰到舞台边界弹回问题:
varmc_v=5;//速度为5
onEnterFrame=function(){//每隔一帧的时间执行一次
mc._x+=mc_v;//mc向mc_v的方向运动
if(mc._x>=(550-mc._width)){//如果舞台的宽为550,mc的注册点在最左边
mc._x=550-mc._width;
mc_v=-mc_v;//速度变反向
}elseif(mc._x

mc碰到舞台边界弹回问题:
varmc_v=5;//速度为5
onEnterFrame=function(){//每隔一帧的时间执行一次
mc._x+=mc_v;//mc向mc_v的方向运动
if(mc._x>=(550-mc._width)){//如果舞台的宽为550,mc的注册点在最左边
mc._x=550-mc._width;
mc_v=-mc_v;//速度变反向
}elseif(mc._x