About me
hi all guest's, I am only a ordinary people, who want a better life then yasterday, fell free to ask about me and follow my another social media. thank's for visiting my blog.

Membuat Jam Flash


1. ganti nama layer 1 menjadi background lalu import gambar yang disenangi untuk menjadi background jam.

2. tambah layer lalu rubah namanya menjadi sec gambarlah jarum melalui rectangle tools kemudian convert to symbol buat namanya sec_mc pilih menu movie clip.
3.tambah layer lagi dan rubah menjadi min sama seperti langkah dua di convert jadi symbol dengan nama min_mc.
4.tambah layer lagi lalu rubah menjadi hour sama seperti langkah 2 & 3 ganti nama disymbol jadi hour_mc.

5. lalu buat layer action maka hasilnya seperti di gambar.

6. lalu buat script seperti ini :

time=new Date(); // time object
seconds = time.getSeconds()
minutes = time.getMinutes()
hours = time.getHours()

hours = hours + (minutes/60);

seconds = seconds*6; // calculating seconds
minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours

sec._rotation=seconds; // giving rotation property
min._rotation=minutes; // giving rotation property
hour._rotation=hours; // giving rotation property

7. met mencoba.

Post a Comment