} }
Radio Button d10
onClipEvententerFrame {
if_root.d10.value==true {
_root.jb10= Salah; _root.kunci10._visible=true;
} }
15. Halaman Latihan III
Layer Mulai
Frame 108
stop;
Layer Waktu Frame 109
onEnterFrame = function {
if _root.validasi == false {
dtk = 60; mnt = 59;
jm = 0; fp=0;
hitung = true; _root.validasi=true;
} else
{ ifdtk10
{ _root.detik=0+dtk;
} else
{ _root.detik=dtk;
} ifmnt10
{ _root.menit=0+mnt;
} else
{ _root.menit=mnt;
}
Universitas Sumatera Utara
ifjm10 {
_root.jam=0+jm; }
else {
_root.jam=jm; }
iffp==12_root.hitung==true {
dtk-= 1; fp=0;
} ifmnt==0dtk==0
{ ifjm0
{ jm-= 1;
mnt = 60; }
} ifdtk0
{ ifmnt0
{ dtk=60;
mnt-=1; }
} fp+=1;
ifjm==0mnt==0dtk==0 {
ifhitung == true {
gotoAndStop118; }
hitung = false; }
} }
Layer Tampung Frame 108
jawaban = new Array; kunci = new Array
d1,b2,b3,b4,a5,c6,c7,b8,a9,c1 0,b11,c12,b13,d14,
b15,a16,d17,a18,a19,c20,d21,d22, b23,c24,a25;
validasi = false ;
Layer Kuis
Universitas Sumatera Utara
Frame 108 Tombol Mulai
onrelease {
gotoAndStop109; }
Frame 109 Radio Button a1
onClipEvententerFrame {
if_root.a1.value==true {
_root.jawaban[0]=a1; }
}
Radio Button b1
onClipEvententerFrame {
if_root.b1.value==true {
_root.jawaban[0]=b1; }
}
Radio Button c1
onClipEvententerFrame {
if_root.c1.value==true {
_root.jawaban[0]=c1; }
}
Radio Button d1
onClipEvententerFrame {
if_root.d1.value==true {
_root.jawaban[0]=d1; }
}
Radio Button a2
onClipEvententerFrame {
if_root.a2.value==true {
Universitas Sumatera Utara
_root.jawaban[1]=a2; }
}
Radio Button b2
onClipEvententerFrame {
if_root.b2.value==true {
_root.jawaban[1]=b2; }
}
Radio Button c2
onClipEvententerFrame {
if_root.c2.value==true {
_root.jawaban[1]=c2; }
}
Radio Button d2
onClipEvententerFrame {
if_root.d2.value==true {
_root.jawaban[1]=d2; }
}
Frame 110
Radio Button a3
onClipEvententerFrame {
if_root.a3.value==true {
_root.jawaban[2]=a3; }
}
Radio Button b3
onClipEvententerFrame {
if_root.b3.value==true {
_root.jawaban[2]=b3; }
}
Radio Button c3
onClipEvententerFrame {
Universitas Sumatera Utara
if_root.c3.value==true {
_root.jawaban[2]=c3; }
}
Radio Button d3
onClipEvententerFrame {
if_root.d3.value==true {
_root.jawaban[2]=d3; }
}
Radio Button a4
onClipEvententerFrame {
if_root.a4.value==true {
_root.jawaban[3]=a4; }
}
Radio Button b4
onClipEvententerFrame {
if_root.b4.value==true {
_root.jawaban[3]=b4; }
}
Radio Button a5
onClipEvententerFrame {
if_root.a5.value==true {
_root.jawaban[4]=a5; }
}
Radio Button b5
onClipEvententerFrame {
if_root.b5.value==true {
_root.jawaban[4]=b5; }
}
Radio Button c5
Universitas Sumatera Utara
onClipEvententerFrame {
if_root.c5.value==true {
_root.jawaban[4]=c5; }
}
Radio Button d5
onClipEvententerFrame {
if_root.d5.value==true {
_root.jawaban[4]=d5; }
}
Frame 111 Radio Button a6
onClipEvententerFrame {
if_root.a6.value==true {
_root.jawaban[5]=a6; }
}
Radio Button b6
onClipEvententerFrame {
if_root.b6.value==true {
_root.jawaban[5]=b6; }
}
Radio Button c6
onClipEvententerFrame {
if_root.c6.value==true {
_root.jawaban[5]=c6; }
}
Radio Button d6
onClipEvententerFrame {
if_root.d6.value==true {
_root.jawaban[5]=d6;
Universitas Sumatera Utara
} }
Radio Button a7
onClipEvententerFrame {
if_root.a7.value==true {
_root.jawaban[6]=a7; }
}
Radio Button b7
onClipEvententerFrame {
if_root.b7.value==true {
_root.jawaban[6]=b7; }
}
Radio Button c7
onClipEvententerFrame {
if_root.c7.value==true {
_root.jawaban[6]=c7; }
}
Radio Button d7
onClipEvententerFrame {
if_root.d7.value==true {
_root.jawaban[6]=d7; }
}
Radio Button a8
onClipEvententerFrame {
if_root.a8.value==true {
_root.jawaban[7]=a8; }
}
Radio Button b8
onClipEvententerFrame {
if_root.b8.value==true {
Universitas Sumatera Utara
_root.jawaban[7]=b8; }
}
Frame 112 Radio Button a9
onClipEvententerFrame {
if_root.a9.value==true {
_root.jawaban[8]=a9; }
}
Radio Button b9
onClipEvententerFrame {
if_root.b9.value==true {
_root.jawaban[8]=b9; }
}
Radio Button c9
onClipEvententerFrame {
if_root.c9.value==true {
_root.jawaban[8]=c9; }
}
Radio Button d9
onClipEvententerFrame {
if_root.d9.value==true {
_root.jawaban[8]=d9; }
}
Radio Button a10
onClipEvententerFrame {
if_root.a10.value==true {
_root.jawaban[9]=a10; }
}
Radio Button b10
onClipEvententerFrame
Universitas Sumatera Utara
{ if_root.b10.value==true
{ _root.jawaban[9]=b10;
} }
Radio Button c10
onClipEvententerFrame {
if_root.c10.value==true {
_root.jawaban[9]=c10; }
}
Radio Button d10
onClipEvententerFrame {
if_root.d10.value==true {
_root.jawaban[9]=d10; }
}
Radio Button a11
onClipEvententerFrame {
if_root.a11.value==true {
_root.jawaban[10]=a11; }
}
Radio Button b11
onClipEvententerFrame {
if_root.b11.value==true {
_root.jawaban[10]=b11; }
}
Radio Button c11
onClipEvententerFrame {
if_root.c11.value==true {
_root.jawaban[10]=c11; }
}
Radio Button d11
Universitas Sumatera Utara
onClipEvententerFrame {
if_root.d11.value==true {
_root.jawaban[10]=d11; }
}
Frame 113 Radio Button a12
onClipEvententerFrame {
if_root.a12.value==true {
_root.jawaban[11]=a12; }
}
Radio Button b12
onClipEvententerFrame {
if_root.b12.value==true {
_root.jawaban[11]=b12; }
}
Radio Button c12
onClipEvententerFrame {
if_root.c12.value==true {
_root.jawaban[11]=c12; }
}
Radio Button d12
onClipEvententerFrame {
if_root.d12.value==true {
_root.jawaban[11]=d12; }
}
Radio Button a13
onClipEvententerFrame {
if_root.a13.value==true {
_root.jawaban[12]=a13; }
}
Universitas Sumatera Utara
Radio Button b13
onClipEvententerFrame {
if_root.b13.value==true {
_root.jawaban[12]=b13; }
}
Radio Button a14
onClipEvententerFrame {
if_root.a14.value==true {
_root.jawaban[13]=a14; }
}
Radio Button b14
onClipEvententerFrame {
if_root.b14.value==true {
_root.jawaban[13]=b14; }
}
Radio Button c14
onClipEvententerFrame {
if_root.c14.value==true {
_root.jawaban[13]=c14; }
}
Radio Button d14
onClipEvententerFrame {
if_root.d14.value==true {
_root.jawaban[13]=d14; }
}
Radio Button a15
onClipEvententerFrame {
if_root.a15.value==true {
_root.jawaban[14]=a15; }
Universitas Sumatera Utara
}
Radio Button b15
onClipEvententerFrame {
if_root.b15.value==true {
_root.jawaban[14]=b15; }
}
Frame 114 Radio Button a16
onClipEvententerFrame {
if_root.a16.value==true {
_root.jawaban[15]=a16; }
}
Radio Button b16
onClipEvententerFrame {
if_root.b16.value==true {
_root.jawaban[15]=b16; }
}
Radio Button c16
onClipEvententerFrame {
if_root.c16.value==true {
_root.jawaban[15]=c16; }
}
Radio Button d16
onClipEvententerFrame {
if_root.d16.value==true {
_root.jawaban[15]=d16; }
}
Radio Button a17
onClipEvententerFrame {
if_root.a17.value==true {
Universitas Sumatera Utara
_root.jawaban[16]=a17; }
}
Radio Button b17
onClipEvententerFrame {
if_root.b17.value==true {
_root.jawaban[16]=b17; }
}
Radio Button c17
onClipEvententerFrame {
if_root.c17.value==true {
_root.jawaban[16]=c17; }
}
Radio Button d17
onClipEvententerFrame {
if_root.d17.value==true {
_root.jawaban[16]=d17; }
}
Radio Button a18
onClipEvententerFrame {
if_root.a18.value==true {
_root.jawaban[17]=a18; }
}
Radio Button b18
onClipEvententerFrame {
if_root.b18.value==true {
_root.jawaban[17]=b18; }
}
Radio Button c18
onClipEvententerFrame {
Universitas Sumatera Utara
if_root.c18.value==true {
_root.jawaban[17]=c18; }
}
Radio Button d18
onClipEvententerFrame {
if_root.d18.value==true {
_root.jawaban[17]=d18; }
}
Radio Button a19
onClipEvententerFrame {
if_root.a19.value==true {
_root.jawaban[18]=a19; }
}
Radio Button b19
onClipEvententerFrame {
if_root.b19.value==true {
_root.jawaban[18]=b19; }
}
Frame 115 Radio Button a20
onClipEvententerFrame {
if_root.a20.value==true {
_root.jawaban[19]=a20; }
}
Radio Button b20
onClipEvententerFrame {
if_root.b20.value==true {
_root.jawaban[19]=b20; }
Universitas Sumatera Utara
}
Radio Button c20
onClipEvententerFrame {
if_root.c20.value==true {
_root.jawaban[19]=c20; }
}
Radio Button d20
onClipEvententerFrame {
if_root.d20.value==true {
_root.jawaban[19]=d20; }
}
Radio Button a21
onClipEvententerFrame {
if_root.a21.value==true {
_root.jawaban[20]=a21; }
}
Radio Button b21
onClipEvententerFrame {
if_root.b21.value==true {
_root.jawaban[20]=b21; }
}
Radio Button c21
onClipEvententerFrame {
if_root.c21.value==true {
_root.jawaban[20]=c21; }
}
Radio Button d21
onClipEvententerFrame {
if_root.d21.value==true {
Universitas Sumatera Utara
_root.jawaban[20]=d21; }
}
Radio Button a22
onClipEvententerFrame {
if_root.a22.value==true {
_root.jawaban[21]=a22; }
}
Radio Button b22
onClipEvententerFrame {
if_root.b22.value==true {
_root.jawaban[21]=b22; }
}
Radio Button c22
onClipEvententerFrame {
if_root.c22.value==true {
_root.jawaban[21]=c22; }
}
Radio Button d22
onClipEvententerFrame {
if_root.d22.value==true {
_root.jawaban[21]=d22; }
}
Frame 116 Radio Button a23
onClipEvententerFrame {
if_root.a23.value==true {
_root.jawaban[22]=a23; }
}
Radio Button b23
onClipEvententerFrame {
Universitas Sumatera Utara
if_root.b23.value==true {
_root.jawaban[22]=b23; }
}
Radio Button c23
onClipEvententerFrame {
if_root.c23.value==true {
_root.jawaban[22]=c23; }
}
Radio Button d23
onClipEvententerFrame {
if_root.d23.value==true {
_root.jawaban[22]=d23; }
}
Radio Button a24
onClipEvententerFrame {
if_root.a24.value==true {
_root.jawaban[23]=a24; }
}
Radio Button b24
onClipEvententerFrame {
if_root.b24.value==true {
_root.jawaban[23]=b24; }
}
Radio Button c24
onClipEvententerFrame {
if_root.c24.value==true {
_root.jawaban[23]=c24; }
}
Radio Button d24
Universitas Sumatera Utara
onClipEvententerFrame {
if_root.d24.value==true {
_root.jawaban[23]=d24; }
}
Radio Button a25
onClipEvententerFrame {
if_root.a25.value==true {
_root.jawaban[24]=a25; }
}
Radio Button b25
onClipEvententerFrame {
if_root.b25.value==true {
_root.jawaban[24]=b25; }
}
Radio Button c25
onClipEvententerFrame {
if_root.c25.value==true {
_root.jawaban[24]=c25; }
}
Radio Button d25
onClipEvententerFrame {
if_root.d25.value==true {
_root.jawaban[24]=d25; }
}
Frame 117 Tombol Kalkulator
onrelease {
skors=0; fori=0;i=24;i++
{ ifjawaban[i]==kunci[i]
Universitas Sumatera Utara
{ skors+=4;
} }
_root.skor=skors; }
Tombol Rumah
onrelease {
gotoAndStop61; }
16. Halaman Latihan IV