• Tidak ada hasil yang ditemukan

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

N/A
N/A
Protected

Academic year: 2017

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

Copied!
14
0
0

Teks penuh

(1)

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

(2)

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 = 0 'Supaya tdk overflow, dsb...

(3)

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 = 0 Then 'Jika counter habis dibagi 2

Label1.Visible = True 'Tampilkan label

Else 'Jika counter tidak habis dibagi 2

Label1.Visible = False 'Sembunyikan label

End If '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

(4)

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

(5)

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

(6)

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)

(7)

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)

(8)

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);

(9)

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();

(10)

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();

};

(11)

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() {

(12)

};

C.onRelease = function() {

nextFrame();

};

D.onRelease = function() {

nextFrame();

};

g. Form Hasil

if (score>=80) {

keterangan = "Good Job Kid,We Proud Of You!";

}

if (score<=60) {

keterangan = "Nevermind,, Try It Again!";

}

restartbutton.onRelease = function() {

gotoAndPlay(1);

};

home.onRelease = function() {

gotoAndPlay('menu',1);

};

7. Form Video(frmvideo)

Private Sub cmdback_Click()

video.Visible = False

home.Show

End Sub

Private Sub Command1_Click()

(13)

WindowsMediaPlayer1.URL = CommonDialog1.FileName

Label1.Caption = CommonDialog1.FileTitle

End Sub

8. Form about (frmCredit)

Option Explicit

Dim Teks As String

Dim i As Integer

Dim digit As Integer

Dim Bergerak1 As Integer

Dim Teks1 As String

Dim Bergerak2 As Integer

Dim Teks2 As String

Private Sub Form_Load()

home.Hide

Teks1 = Label7

End Sub

Private Sub Timer2_Timer()

Label7 = Bergerak1

Teks1 = Right(Teks1, Len(Teks1) - 1) & Left(Teks1, 1)

Label7 = Teks1

End Sub

Private Sub Timer1_Timer()

If Label4.Visible = True Then

Label4.Visible = False

ElseIf Label4.Visible = False Then

(14)

End If

End Sub

Private Sub Timer3_Timer()

If Label5.Visible = True Then

Label5.Visible = False

ElseIf Label5.Visible = False Then

Label5.Visible = True

End If

End Sub

Private Sub Timer4_Timer()

If Label9.Visible = True Then

Label9.Visible = False

ElseIf Label9.Visible = False Then

Label9.Visible = True

End If

End Sub

Private Sub Timer5_Timer()

If Label8.Visible = True Then

Label8.Visible = False

ElseIf Label8.Visible = False Then

Label8.Visible = True

End If

Referensi

Dokumen terkait

Pengacuan yang semacam ini dimaksudkan untuk mempermudah identifikasi penulis pustaka yang diacu, mengingat bahwa penggunaan nama keluarga ( family name/surname ) dan

[r]

Nama Penulis. Judul Jurnal , volume:nomor_halaman, tahun_publikasi. Contoh penulisan di Daftar Pustaka lihat [3].. iii) Artikel pada

[r]

DINAS PANGAN, PERTANIAN DAN PERIKANAN KABUPATEN WONOSOBO TAHUN ANGGARAN

perkiraan yang dibuat konsultan perencana PPBJ Jasa Konstruksi Rehabilitasi Gedung KPKNL P.Sidimpuan 25 Jun 2012 10:25 Peserta (penyedia barang/jasa) Panitia/Pokja ULP

dilakukannya Penjelasan pekerjaan (aanwijzing) adalah Dokumen Pengadaan Pekerjaan Konstruksi yang d oleh Penyedia Jasa.. melakukan pendaftaran sebelum mengunduh/download

PEKERJAAN PENGADAAN DAN PEMASANGAN KOMPUTER DAN KELENGKAPANNYA DI LINGKUNGAN SEKRETARIAT PRESIDEN. No Nama