求鼠标一靠近就会躲开的FLASH代码

来源:百度知道 编辑:UC知道 时间:2024/06/06 06:52:43
就是鼠标一靠近元件那元件就会躲开,而无法碰到那元件,求高手帮帮忙啦

1.舞台大小假设为500*400

2.把原件命名为aa

3.时间轴上写:

onEnterFrame = function () {
if (aa.hitTest(_xmouse, _ymouse, true)) {
aa._x = random(500);
aa._y = random(400);
}
};

哈你哪个意思是你看看吧http://v.youku.com/v_playlist/f2541491o1p40.html,和这个情况差不多,打开后别关掉一直看 ,但是对你肯定没帮助放心好啦

onRollOver=function(){
gotoandstop()}