Selasa, 18 Januari 2011

Sound Flash Button

  • Ikuti langkah-langkah yang diberikan di bawah ini untuk membuat tombol flash dengan suara:

    Including sound files in Flash Buttons Termasuk file suara di Flash Buttons

    1. Create a simple Button and enter into its symbol-editing mode. Buat sederhana Button dan masuk ke modus simbol-editing-nya. The timeline header changes to display four consecutive frames labeled Up, Over, Down, and Hit as shown below. perubahan timeline header untuk menampilkan empat frame berturut-turut diberi label Up, Over, Down, dan Hit seperti yang ditunjukkan di bawah ini.


      Fig: Symbol-editing Mode of Button Gambar: Simbol-editing Mode Button
    2. Insert a Keyframe ( F6 ) in the Over frame to duplicate the contents of the Up frame and change the color of the object in the Over frame. Sisipkan Keyframe (F6) pada frame Over untuk menduplikasi isi dari frame Up dan mengubah warna objek dalam bingkai Over.
    3. Import the sound file ( Ctrl + R ), add a new layer for sound and select the imported sound file from the Sound Panel of the Properties window. Impor file suara (Ctrl + R), menambahkan lapisan baru untuk suara dan pilih file suara yang diimpor dari Panel Sound dari jendela Properties.


      Fig: Button showing sound in a Layer Gambar: Button menunjukkan suara di suatu Layer
    4. Now insert frame ( F5 ) for the Down frame and the Hit frame (this frame is not visible, but only defines the area of the button that responds to mouse events). Sekarang masukkan frame (F5) untuk frame Down dan Hit frame (bingkai hal ini tidak terlihat, tetapi hanya mendefinisikan area tombol yang merespon terhadap peristiwa mouse).
    5. Save your work and test the Movie ( Ctrl + Enter ). Menyimpan pekerjaan Anda dan menguji Movie (Ctrl + Enter). That's it now your button can play music during mouse-overs. Itu sekarang tombol Anda dapat memainkan musik selama mouse-overs.
  • Tidak ada komentar:

    Posting Komentar