Rancang Bangun Game Matchmaker Berbasis Macromedia Flash 8

LAMPIRAN : LISTING PROGRAM

1.

ActionScript untuk berpindah ke scene selanjutnya yaitu untuk memilih
mode game.
on(release){
gotoAndPlay("START",1);
}

2.

ActionScript untuk melihat petunjuk game Matchmaker.
on(release){
gotoAndPlay("HELP",1);
}

3.

ActionScript untuk melihat profil penulis.
on(release){

gotoAndPlay("ABOUT",1);
}

4.

ActionScript untuk konfirmasi keluar dari game Matchmaker.
on(release){
gotoAndPlay(86);
}

5.

ActionScript untuk keluar dari game Matchmaker.
on(release){
fscommand("Quit",true);
}

Universitas Sumatera Utara

6.


ActionScript untuk berpindah ke scene selanjutnya yaitu untuk memilih
submode game.
on(release){
gotoAndPlay("START1",1);
}

7.

ActionScript untuk berpindah scene selanjutnya yaitu memulai game
Matchmaker.
on(release){
gotoAndPlay("16MEMORYEASY",1);
}

8.

ActionScript untuk berpindah ke frame selanjutnya
on(release){
nextFrame();

}

9.

ActionScript untuk berpindah ke frame sebelumnya
on(release){
prevFrame();
}

10. ActionScript untuk Eksekusi pengecekan pada Tombol Wadah
on (release) {
n1 = 1;
cekWadah();
cekTotal();
}

Universitas Sumatera Utara

11. ActionScript untuk Eksekusi pengecekan pada Tombol Cocok
on (release) {

n2 = 2;
cekCocok();
cekTotal();
}

12. ActionScript untuk Timer / Waktu
onClipEvent (enterFrame) {
if (_currentframe == _totalframes) {
_root.gotoAndStop("Kalah");
}
}

13. ActionScript Membuat Array untuk Menentukan Jumlah Gambar yang
Ditampilkan
bank_data = new Array();
for (i=0; i