Menampilkan Tanggal dengan Flash 8/CS3
Untuk menampilkan tanggal menggunakan flash 8/CS3 dapat dibuat sebagai berikut :
- Aktifkan Flashnya.
- Buka Dokumen Flash baru.
- Pada frame 1, buatkan sebuah kotak teks dinamis (Dinamic Text), beri nama Instancenya TampilTanggal.
- Pilih kembali frame 1, kemudian tekan F9 untuk memasukkan Action script berikut :
namahari = new Array(“Minggu”, “Senin”, “Selasa”, “Rabu”, “Kamis”, “Jumat”, “Sabtu”);
namabulan = new Array(“Januari”, “Februari”, “Maret”, “April”, “Mei”, “Juni”, “Juli”, “Agustus”, “September”, “Oktober”, “November”, “Desember”);
kalender = new Date();
hari = namahari[kalender.getDay()];
tanggal = kalender.getDate();
bulan = namabulan[kalender.getMonth()];
tahun = kalender.getFullYear();
TampilTanggal.text = hari +”, “+ tanggal +” “+ bulan +” “+ tahun; - Jalankan dengan menekan tombol CTRL + ENTER
- Ok, silahkan modif supaya lebih menarik tampilannya.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.


No comments yet.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>