Perancangan Aplikasi Pembelajaran Bahasa Inggris Untuk Anak Sekolah Dasar Kelas Satu Menggunakan Visual Basic 6.0.

LISTING PROGRAM

1. Form splash
'koding untuk menjalankan progress bar'
Private Sub Timer1_Timer()

bar.Value = bar.Value + 4
Screen.MousePointer = vbHourglass
If bar.Value = 8 Then
lbBar.Caption = "Loading...."
ElseIf bar.Value = 40 Then
lbBar.Caption = "Initializing...."
ElseIf bar.Value = 68 Then
lbBar.Caption = "Waiting...."
ElseIf bar.Value = 100 Then
lbBar.Caption = "Finishing...."
If bar.Value = 100 Then
If Timer1.Interval >= 1 Then
Unload Me
Screen.MousePointer = vbDefault
home.Show

End If
End If
End If

End Sub

Universitas Sumatera Utara

2. Form Menu

'deklarasi warna kelip
Dim i As Long
Dim merah, hijau, biru As Integer
'selesai

Private Sub category_Click()
frmcat.Show
home.Hide
End Sub


Private Sub lblquiz_Click()
frmQuiz.Show
home.Hide
End Sub

Private Sub lblsing_Click()
video.Show
home.Hide
End Sub

Private Sub lblabout_Click()
credit.Show
home.Hide
End Sub

'timer teks kelip
Private Sub Timer1_Timer()
i=i+1
If i = 1000000 Then I
merah


=0

= Int(255 * Rnd)

'Supaya tdk overflow, dsb...
'Bangkitkan angka random untuk merah

Universitas Sumatera Utara

hijau

= Int(255 * Rnd)

'Bangkitkan angka random untuk hijau

biru

= Int(255 * Rnd)


'Bangkitkan angka random untuk biru

Label1.ForeColor = RGB(merah, hijau, biru) 'Campur tiga warna
If i Mod 2
Label1.Visible

= 0 Then

'Jika counter habis dibagi 2

= True

'Tampilkan label

Else

'Jika counter tidak habis dibagi 2

Label1.Visible


= False

End If

'Sembunyikan label
'Akhir pemeriksaan

End Sub

Private Sub Form_Load()
'Warna kelip welcome
i=0

'Inisialisasi detik

Timer1.Interval = 500 'Kalau 1000 biasanya lompat 1 detik
Label1.Caption = "Welcome"
'selesai
End Sub


3. Form Kategori
Private Sub alphabet_Click()
alpha.Show
frmcat.Hide
End Sub

Private Sub animals_Click()
animal.Show
frmcat.Hide
End Sub
Private Sub colours_Click()
colour.Show
frmcat.Hide
End Sub

Universitas Sumatera Utara

Private Sub Drinks_Click()
drink.Show
frmcat.Hide

End Sub

Private Sub family_Click()
frmFamily.Show
frmcat.Hide
End Sub

Private Sub food_Click()
Dish.Show
frmcat.Hide
End Sub

Private Sub fruits_Click()
frmfruit.Show
frmcat.Hide
End Sub

Private Sub house_Click()
frmhouse.Show
frmcat.Hide

End Sub

Private Sub numbers_Click()
numb.Show
frmcat.Hide
End Sub

Universitas Sumatera Utara

Private Sub school_Click()
frmschool.Show
frmcat.Hide
End Sub

Private Sub vegetables_Click()
vegetable.Show
frmcat.Hide
End Sub

4. Form fruit(frmfruit)

'deklarasi suara'
Private Declare Function PlaySound Lib "winmm.dll" Alias _
"PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, _
ByVal dwFlags As Long) As Long
Public Function PlayWaveFile(strFileName As String, Optional blnAsync As
Boolean) As Boolean
Dim lngFlags As Long
Const snd_sync = &H0
Const snd_Async = &H1
Const snd_Nodefault = &H2
Const snd_Filename = &H20000
lngFlags = snd_Nodefault Or snd_Filename Or snd_sync
If blnAsync Then lngFlags = lngFlags Or snd_Async
PlayWaveFile = PlaySound(strFileName, 0&, lngFlags)
End Function
'selesai

Private Sub cmdback_Click()
fruit.Visible = False
frmcat.Show

End Sub

Universitas Sumatera Utara

Private Sub image1_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\grape.wav", True)
End Sub

Private Sub image10_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\pear.wav", True)
End Sub

Private Sub image11_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\soursop.wav", True)
End Sub

Private Sub image12_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\banana.wav", True)
End Sub


Private Sub Image13_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\orange.wav", True)
End Sub

Private Sub image14_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\melon.wav", True)
End Sub

Private Sub image2_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\starfruit.wav", True)
End Sub

Private Sub image3_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\strawberry.wav", True)
End Sub

Universitas Sumatera Utara

Private Sub image4_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\mango.wav", True)
End Sub

Private Sub image5_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\papaya.wav", True)
End Sub

Private Sub image6_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\mangosteen.wav", True)
End Sub

Private Sub image7_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\watermelon.wav", True)
End Sub

Private Sub image8_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\avocado.wav", True)
End Sub

Private Sub image9_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\pineapple.wav", True)
End Sub

Private Sub imge15_Click()
retval = PlayWaveFile(App.Path & "\fruit spell\apple.wav", True)
End Sub

Universitas Sumatera Utara

5. Form Quiz

Private Sub Command1_Click()
frmQuiz.Visible = False
home.Show
End Sub

Private Sub Play_Click()
ShockwaveFlash1.Movie = App.Path & "\kuis.swf"
End Sub

6. Macromedia Flash

1. Menu Utama
stop();
fruit.onRelease = function() {
gotoAndPlay('fruit', 1);
}
family.onRelease = function() {
gotoAndPlay('family', 1);
}
school.onRelease = function() {
gotoAndPlay('school', 1);
}
food.onRelease = function() {
gotoAndPlay('food', 1);
}
animal.onRelease = function() {
gotoAndPlay('animal', 1);
}

Universitas Sumatera Utara

2. Kategori (Food)
a. Menu
stop();
score = 0;
startbutton.onRelease = function() {
nextFrame();
};
home.onRelease = function() {
gotoAndPlay('menu',1);
};

b. Soal 1
stop();
onEnterFrame = function () {
skor = +score;
};
A.onRelease = function() {
score += 20;
nextFrame();
};
B.onRelease = function() {
nextFrame();
};
C.onRelease = function() {
nextFrame();
};
D.onRelease = function() {
nextFrame();
};

Universitas Sumatera Utara

c. Soal 2
stop();
onEnterFrame = function () { skor = +score;};

A.onRelease = function(){
nextFrame();
};
B.onRelease = function() {
nextFrame();
};
C.onRelease = function() {
nextFrame();
};
D.onRelease = function() {
score += 20;
nextFrame();
};

d. Soal 3
stop();
onEnterFrame = function () { skor = +score;};
A.onRelease = function(){
nextFrame();
};
B.onRelease = function() {
score += 20;
nextFrame();
};
C.onRelease = function() {
nextFrame();
};
D.onRelease = function() {

Universitas Sumatera Utara

nextFrame();
};

e. Soal 4
stop();
onEnterFrame = function () {
skor = +score;
};
A.onRelease = function() {
nextFrame();
};
B.onRelease = function() {
nextFrame();
};
C.onRelease = function() {
score += 20;
nextFrame();
};
D.onRelease = function() {
nextFrame();
};

f. Soal 5
stop();
onEnterFrame = function () {
skor = +score;
};
A.onRelease = function() {
score += 20;
nextFrame();
};
B.onRelease = function() {
nextFrame();

Universitas Sumatera Utara

};
C.onRelease = function() {
nextFrame();
};
D.onRelease = function() {
nextFrame();
};

g. Form Hasil
if (score>=80) {
keterangan = "Good Job Kid,We Proud Of You!";
}
if (score