资源描述
stop();
//reset
_root.btn_reset.onRelease = function()
{
_root.greens._x = 394.45;
_root.greens._y = 56.60;
_root.reds._x = 444.30;
_root.reds._y = 68.70;
_root.pps._x = 501.20;
_root.pps._y = 60.05;
_root.greens.gotoAndStop(1);
_root.reds.gotoAndStop(1);
_root.pps.gotoAndStop(1);
_root.fire._alpha = 0;
};
//������ƶ�
_root.reds.onPress = function()
{
_root.reds.onEnterFrame = function()
{
_root.reds._x = _root._xmouse;
_root.reds._y = _root._ymouse;
};
};
_root.reds.onRelease = function()
{
delete reds.onEnterFrame;
};//�̱����ƶ�
_root.greens.onPress = function()
{
_root.greens.onEnterFrame = function()
{
_root.greens._x = _root._xmouse;
_root.greens._y = _root._ymouse;
};
};
_root.greens.onRelease = function()
{
delete greens.onEnterFrame;
};
//�̱����ƶ�
_root.pps.onPress = function()
{
_root.pps.onEnterFrame = function()
{
_root.pps._x = _root._xmouse;
_root.pps._y = _root._ymouse;
};
};
_root.pps.onRelease = function()
{
delete pps.onEnterFrame;
};
//����
_root.opens.onRelease = function()
{//ֻ�Ӻ��
if (_root.reds.hitTest(cc) && reds._currentframe == 1)
{
_root.fire._alpha = 100;
_root.reds.gotoAndPlay(2);
}
//ֻ���̱�
if (_root.greens.hitTest(cc) && greens._currentframe == 1)
{
_root.fire._alpha = 100;
_root.greens.gotoAndPlay(2);
}
//ֻ���ϱ�
if (_root.pps.hitTest(cc) && pps._currentframe == 1)
{
_root.fire._alpha = 100;
_root.pps.gotoAndPlay(2);
}
//���̿������2��1
if (greens._currentframe == 30 && _root.pps.hitTest(cc) && _root.greens.hitTest(cc))
{
_root.greens.gotoAndPlay(125);
_root.pps.gotoAndPlay(2);
}
//��2��2
if (reds._currentframe == 30 && _root.pps.hitTest(cc) && _root.reds.hitTest(cc) && pps._currentframe == 30)
{
_root.reds.gotoAndPlay(125);
_root.pps.gotoAndPlay(125);
}
//���Ͽ������2��1
if (pps._currentframe == 30 && _root.greens.hitTest(cc) && _root.greens.hitTest(cc))
{
_root.pps.gotoAndPlay(125);
_root.greens.gotoAndPlay(2);
}
//��2��2
if (reds._currentframe == 30 && _root.greens.hitTest(cc) && _root.reds.hitTest(cc))
{
_root.reds.gotoAndPlay(125);
_root.greens.gotoAndPlay(125);
}
//���Ͽ��̳���2��1
if (pps._currentframe == 30 && _root.reds.hitTest(cc) && _root.pps.hitTest(cc))
{
_root.pps.gotoAndPlay(125);
_root.reds.gotoAndPlay(2);
}
//��2��2
if (greens._currentframe == 30 && _root.pps.hitTest(cc) && _root.greens.hitTest(cc))
{
_root.greens.gotoAndPlay(125);
_root.pps.gotoAndPlay(125);
}
};
_root.off.onRelease = function()
{
_root.fire._alpha = 0;
};
_root.red.onRelease = function()
{
if (_root.reds.hitTest(cc) && reds._currentframe == 30)
{
_root.reds.gotoAndPlay(125);
}
};
_root.green.onRelease = function()
{
if (_root.greens.hitTest(cc) && greens._currentframe == 30)
{
_root.greens.gotoAndPlay(125);
}
};
_root.purple.onRelease = function()
{
if (_root.pps.hitTest(cc) && pps._currentframe == 30)
{
_root.pps.gotoAndPlay(125);
}
};
展开阅读全文