· Lampiran 3 : List Soal untuk Final Test dan Kuis ..... L42 Lampiran 4 : Surat Survei

download  · Lampiran 3 : List Soal untuk Final Test dan Kuis ..... L42 Lampiran 4 : Surat Survei

of 43

  • date post

    03-Mar-2019
  • Category

    Documents

  • view

    213
  • download

    0

Embed Size (px)

Transcript of  · Lampiran 3 : List Soal untuk Final Test dan Kuis ..... L42 Lampiran 4 : Surat Survei

LAMPIRAN Lampiran 1 : Listing Program ..................................................................................................... L26 Lampiran 2 : Database Character Hiragana ................................................................................ L28 Lampiran 3 : List Soal untuk Final Test dan Kuis ...................................................................... L42 Lampiran 4 : Surat Survei Listing Program MAIN MENU frame1 stop(); button start frame1 on (release) { gotoandstop (20) } START - SUB MENU start----> lesson1, lesson2, lesson3, final test button lesson1 on (release) { if(this == Number(this)){ loadMovieNum("test.swf",this); } else { this.loadMovie("test.swf"); } } LESSON 1 codepada frame (sensor) note = ""; //load database txt wew = new LoadVars(); wew.load("database.txt"); wew.onLoad = function() {

teks_tampil = wew.tanya; //teks_tampil = wew.jawab; string = ""; //string = string.length; //string = string.charAt(); }; startDrag(kotak_kecil, true); Mouse.hide(); _root.onMouseDown = function() { //mengatur ukuran pen (brush)=5 dan warna menjadi merah _root.lineStyle(5, 0x000000, 100); _root.moveTo(_root._xmouse, _root._ymouse); gambar = true; }; //keluarin tinta _root.onMouseMove = function() { if (gambar == true) { _root.lineTo(_root._xmouse, _root._ymouse); cek=1; if (kotak_kecil.hitTest(a1)) { note = "a"; } else if (kotak_kecil.hitTest(a2)) { note = "b"; } else if (kotak_kecil.hitTest(a3)) { note = "c"; } else if (kotak_kecil.hitTest(a4)) { note = "d"; } else if (kotak_kecil.hitTest(a5)) { note = "e"; } else if (kotak_kecil.hitTest(a6)) { note = "f"; } else if (kotak_kecil.hitTest(a7)) { note = "g"; }

else if (kotak_kecil.hitTest(b1)) { note = "h"; } else if (kotak_kecil.hitTest(b2)) { note = "i"; } else if (kotak_kecil.hitTest(b3)) { note = "j"; } else if (kotak_kecil.hitTest(b4)) { note = "k"; } else if (kotak_kecil.hitTest(b5)) { note = "l"; } else if (kotak_kecil.hitTest(b6)) { note = "m"; } else if (kotak_kecil.hitTest(b7)) { note = "n"; } else if (kotak_kecil.hitTest(c1)) { note = "o"; } else if (kotak_kecil.hitTest(c2)) { note = "p"; } else if (kotak_kecil.hitTest(c3)) { note = "q"; } else if (kotak_kecil.hitTest(c4)) { note = "r"; } else if (kotak_kecil.hitTest(c5)) { note = "s"; } else if (kotak_kecil.hitTest(c6)) { note = "t"; } else if (kotak_kecil.hitTest(c7)) { note = "u"; } else if (kotak_kecil.hitTest(d1)) { note = "v"; } else if (kotak_kecil.hitTest(d2)) {

note = "w"; } else if (kotak_kecil.hitTest(d3)) { note = "x"; } else if (kotak_kecil.hitTest(d4)) { note = "y"; } else if (kotak_kecil.hitTest(d5)) { note = "z"; } else if (kotak_kecil.hitTest(d6)) { note = "A"; } else if (kotak_kecil.hitTest(d7)) { note = "B"; } else if (kotak_kecil.hitTest(e1)) { note = "C"; } else if (kotak_kecil.hitTest(e2)) { note = "D"; } else if (kotak_kecil.hitTest(e3)) { note = "E"; } else if (kotak_kecil.hitTest(e4)) { note = "F"; } else if (kotak_kecil.hitTest(e5)) { note = "G"; } else if (kotak_kecil.hitTest(e6)) { note = "H"; } else if (kotak_kecil.hitTest(e7)) { note = "I"; } else if (kotak_kecil.hitTest(f1)) { note = "J"; } else if (kotak_kecil.hitTest(f2)) { note = "K"; } else if (kotak_kecil.hitTest(f3)) { note = "L"; }

else if (kotak_kecil.hitTest(f4)) { note = "M"; } else if (kotak_kecil.hitTest(f5)) { note = "N"; } else if (kotak_kecil.hitTest(f6)) { note = "O"; } else if (kotak_kecil.hitTest(f7)) { note = "P"; } else if (kotak_kecil.hitTest(g1)) { note = "Q"; } else if (kotak_kecil.hitTest(g2)) { note = "R"; } else if (kotak_kecil.hitTest(g3)) { note = "S"; } else if (kotak_kecil.hitTest(g4)) { note = "T"; } else if (kotak_kecil.hitTest(g5)) { note = "U"; } else if (kotak_kecil.hitTest(g6)) { note = "V"; } else if (kotak_kecil.hitTest(g7)) { note = "W"; } //bates else if (kotak_kecil.hitTest(atas)) { gambar = false; } else if (kotak_kecil.hitTest(bawah)) { gambar = false; } else if (kotak_kecil.hitTest(kanan)) { gambar = false;

} else if (kotak_kecil.hitTest(kiri)) { gambar = false; } else{} //masalah tidak bisa pakai angka.Cuma alfabet. Jd kotaknya limited if ( note != string.charAt(0)) { string = note + string; } else { } updateAfterEvent(); } }; //stop tinta _root.onMouseUp = function() { gambar = false; }; //jika tombol erase all ditekan maka semua gambar akan terhapus clear_btn.onPress = function() { string = ""; flag = 0; cek=0; _root.clear(); }; cleary.onPress = function() { string = ""; flag=0; cek=0; _root.clear();

}; stop(); Code pada button submit on (press) { a = string.length; b = temp.length; i = 0; flag = 0; temp = "GFyrszyxzsrqxwxq"; //pattern huruf //mencocokandengan string dan temp for (i ;i 0) { //jika ketidaksesuaian pattern 2 else { deteksi = "please try again.."; }

} else { deteksi = "please write"; gotoandstop(13); } string = ""; flag=0; cek=0; _root.clear(); } Codepada button clear Code untuk program test Pada Frame //timer detik=5; var fps:Number=0; var timer_txt:Number=10; onEnterFrame=function() { fps++; if(fps==0,2) { timer_txt--; if(timer_txt == -1) { detik--; timer_txt=10; } if(detik==-1) { //detik=5; if (detik == -1) { detik = 0; timer_txt = 0; warning = "Time is UP!!"; } else {

} } fps=0; } } //timer end LV=0; s1 = "which letter is 'Ka' ? "; soal = s1; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; //jawaban bener ans = "A"; Button A on(Press) { //nilai button option = "A"; //Hasil if (ans == option && detik > 3) { hasil = "Benar-cepat"; LV=LV+5; rdm = Math.floor(Math.random()*5)+LV; } else if (ans == option) { hasil = "Benar lambat"; rdm = Math.floor(Math.random()*5)+LV; } else if (ans != option) {

hasil = "Salah"; if (LV > 0 ) { LV=LV-5; rdm = Math.floor(Math.random()*5)+LV; } else { } } //soal //level 1 rdm (1-5) if(rdm == 1) { s1 = "which letter is 'Ka' ? "; soal = s1; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; //jawaban bener ans = "A"; } else if(rdm == 2) { s2 = "which letter is 'N' ? "; soal = s2; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } else if(rdm == 3) { s3 = "which letter is 'No' ? "; soal = s3; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc";

pilD ="dddd"; ans = "A"; } else if(rdm == 4) { s4 = "which letter is 'Fu' ? "; soal = s4; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } else if(rdm == 5) { s5 = "which letter is 'Tsu' ? "; soal = s5; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } //level 2 rdm (6-10) else if(rdm == 6) { s6 = "Which is "; soal = s6; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } else if(rdm == 7) { s7 = "Which is"; soal = s7; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc";

pilD ="dddd"; ans = "B"; } else if(rdm == 8) { s8 = "Which is"; soal = 8; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } else if(rdm == 9) { s9 = "Which is"; soal = s9; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } else if(rdm == 10) { s10 = "Which is"; soal = s10; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } //level 3 rdm (11-55) else if(rdm == 11) { s11 = "Which word is 'Sushi' ?"; soal = s11; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd";

ans = "B"; } else if(rdm == 12) { s12 = "Which word is 'Sake' ?"; soal = s12; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } else if(rdm == 13) { s13 = "Which word is 'Kan' ?"; soal = s13; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } else if(rdm == 14) { s14 = "Which word is 'Namu' ?"; soal = s14; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; } else if(rdm == 15) { s15 = "Which word is 'Maru' ?"; soal = s15; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "B"; }

//jalanin timer lagi detik = 6; timer_txt = 0; warning = ""; } Button B on(Press) { //nilai button option = "B; //Hasil if (ans == option && detik > 3) { hasil = "Benar-cepat"; LV=LV+5; rdm = Math.floor(Math.random()*5)+LV; } else if (ans == option) { hasil = "Benar lambat"; rdm = Math.floor(Math.random()*5)+LV; } else if (ans != option) { hasil = "Salah"; if (LV > 0 ) { LV=LV-5; rdm = Math.floor(Math.random()*5)+LV; } else { } } //soal //level 1 rdm (1-5) if(rdm == 1)

{ s1 = "which letter is 'Ka' ? "; soal = s1; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; //jawaban bener ans = "A"; } else if(rdm == 2) { s2 = "which letter is 'N' ? "; soal = s2; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } else if(rdm == 3) { s3 = "which letter is 'No' ? "; soal = s3; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } else if(rdm == 4) { s4 = "which letter is 'Fu' ? "; soal = s4; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } else if(rdm == 5) { s5 = "which letter is 'Tsu' ? ";

soal = s5; //pilgan pilA ="aaaa"; pilB ="bbbbb"; pilC ="cccc"; pilD ="dddd"; ans = "A"; } //level 2 rdm (6-10) else