����λ�ã���ҳ > �����̳� > �̳� > Flash AS3.0�����������Ϸ������

Flash AS3.0�����������Ϸ������

��Դ����������|��ʱ�䣺2015-07-13 10:54:28 |���Ķ���158��|�� ��ǩ�� Flash �� |����������

������ɻ���Ϸ����������
��һ��

��ʾ��

Flash AS3.0½ÌÄãÉä»÷ÀàÓÎÏ·µÄÖÆ×÷



�����Ϸ���ܴ�Ҷ�������л������������ط��У����Ҽ�ͷ�����ƻ����ڲݵ��������ƶ������¿ո�������ӵ������ел��󣬵л���ը���÷֣���¼���еĵл�����ʣ���ӵ�����¼�ӵ���������

��Ϸ���й���ͼ��


Flash AS3.0½ÌÄãÉä»÷ÀàÓÎÏ·µÄÖÆ×÷


ȫ���ļ�������ͼ����Ϸ�ļ�


Flash AS3.0½ÌÄãÉä»÷ÀàÓÎÏ·µÄÖÆ×÷


AirRaid.fla������漰Ԫ��


AirRaid.as�ĵ��� �������ڡ���������������߼�˳���߼��ṹ��ϵ��


AAGun.as�󶨿��еĻ��ڵ�����ƻ���


AirPlane.as�󶨿��еĵл�������Ʒɻ�


Bullet.as�󶨿��е��ӵ���������ӵ�


UI(����)����


AirRaid.fla�ļ��ṹ


AirRaid.fla�ļ��������ļ�����Ϊ5��ͼ��3֡��֡���д��룬�����ĵ��� AirRaid.as ��ͼ������

Ԫ��

Flash AS3.0½ÌÄãÉä»÷ÀàÓÎÏ·µÄÖÆ×÷


1��

����

�㣺

����

�����졢�ݵء�ɽ�͡�


2���ɼ���ʾ�㣺"�÷֣�" ��̬�ı���ʵ���� showScore "ʣ���ӵ���" ��̬�ı���ʵ���� showShots��


3����ť����ʾ�㣺��1֡����ʼ��ť��˵����ʵ������startButton����3֡�����¿�ʼ��ť��������ʾ��ʵ���� playAgainButton��


4������㣺3֡ÿ֡���д��롣


5����ǩ�㣺��1֡����ǩ���ƣ�intro ��2֡����ǩ���ƣ�play ��3֡����ǩ���ƣ�gameover ��


������ÿ֡���뼰���ͣ�


��1֡���룺



importflash.events.MouseEvent; 
stop(); 
startButton.addEventListener(MouseEvent.CLICK,clickStart); 
functionclickStart(event:MouseEvent){ 
gotoAndStop("play"); 
}

С���Ƽ��Ķ�

�������������Ľ�Ϊ������Ϣ����������������ͬ���޹۵��֤ʵ��������

�����Ƶ����

����

ͬ������

����

ɨ��ά�����������ֻ��汾��

ɨ��ά����������΢�Ź��ںţ�

��վ�������������������ϴ��������ַ���İ�Ȩ���뷢�ʼ�[email protected]

��ICP��2022002427��-10 �湫��������43070202000427��© 2013~2025 haote.com ������