SlideShare a Scribd company logo
1 of 6
Pertama buat kotak dengan ukuran 15×150, kemudian ubah menjadi movieclip. Tentukan registrasi
point di posisi bawah. beri nama “bar” pada instance name.
Seleksi movieclip bar, buka panel action (f9) masukan syntak di bawah ini:
1
2
3
4
onClipEvent(enterFrame)
{
this._rotation -=5;
}
Klik frame 1, pada panel action ketikan syntak di bawah ini:
1
2
3
4
5
6
7
for(i=0;i<=700; i=i+20)
{
duplicateMovieClip(_root.bar,"bar"+i,i);
_root["bar"+i]._x=i; _root["bar"+i]._rotation -=700/i*100;
_ root["bar"+i]._alpha =i/700*100;
}
_root.bar._visible=0;
Jalankan Movie.
Cara ini lebih mudah dan gampang daripada menggunakan metode frame by frame atau motion tween,
dan ukuran file swf relatif kecil.
Buat dokumen flash baru (actionscript 3.0).
2. Pertama,ubah warna background stage menjadi hitam.
3. Buatlah movieclip baru dengan memilih menu Insert > New Symbol. Beri nama “Particle1”.
Jangan lupa, centang pilihan Export for Actionscript kemudian isi nama class dengan “Particle1”.
4. Gambarlah sebuah garis seperti gambar berikut:
5. Ubah gambar di atas menjadi objek movieclip.
6. Buat animasi berputar seperti gambar berikut:
Tampilan animasi
7. Sekarang kembali ke scene 1. Buka panel action, kemudian ketikan script berikut:
1
2
3
4
5
6
7
8
9
10
import flash.events.Event;
import flash.utils.Timer;
import flash.events.TimerEvent;
var pos:int=50;//menentukan posisi awal objek
var rot:int=0; //menentukan perputaran objek
addEventListener(Event.ENTER_FRAME, animationLoop);
function animationLoop(e:Event)
{
var obj:Particle1=new Particle1(); //memanggil objek
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
obj.x=pos;
obj.y=pos;
obj.rotation=rot;
addChild(obj);
pos++;
rot++;
}
//membatasi perulangan animasi
var timer:Timer=new Timer(1000,12);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, stopLoop);
timer.start();
function stopLoop(e:TimerEvent)
{
removeEventListener(Event.ENTER_FRAME, animationLoop);
}
8. Jalankan movie.
9. Selain itu, anda bisa berkreasi dengan bermacam-macam bentuk animasi tanpa harus mengubah kode
actionscript. Anda hanya perlu merubah bentuk animasi pada contoh di atas sehingga menghasilkan
bermacam-macam animasi seperti berikut:
From internet

More Related Content

Recently uploaded

.....................Swamedikasi 2-2.pptx
.....................Swamedikasi 2-2.pptx.....................Swamedikasi 2-2.pptx
.....................Swamedikasi 2-2.pptx
furqanridha
 
KISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docx
KISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docxKISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docx
KISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docx
DewiUmbar
 
Kenakalan Remaja (Penggunaan Narkoba).ppt
Kenakalan Remaja (Penggunaan Narkoba).pptKenakalan Remaja (Penggunaan Narkoba).ppt
Kenakalan Remaja (Penggunaan Narkoba).ppt
novibernadina
 

Recently uploaded (20)

Aksi Nyata PMM Topik Refleksi Diri (1).pdf
Aksi Nyata PMM Topik Refleksi Diri (1).pdfAksi Nyata PMM Topik Refleksi Diri (1).pdf
Aksi Nyata PMM Topik Refleksi Diri (1).pdf
 
Bab 4 Persatuan dan Kesatuan di Lingkup Wilayah Kabupaten dan Kota.pptx
Bab 4 Persatuan dan Kesatuan di Lingkup Wilayah Kabupaten dan Kota.pptxBab 4 Persatuan dan Kesatuan di Lingkup Wilayah Kabupaten dan Kota.pptx
Bab 4 Persatuan dan Kesatuan di Lingkup Wilayah Kabupaten dan Kota.pptx
 
.....................Swamedikasi 2-2.pptx
.....................Swamedikasi 2-2.pptx.....................Swamedikasi 2-2.pptx
.....................Swamedikasi 2-2.pptx
 
Konseptual Model Keperawatan Jiwa pada manusia
Konseptual Model Keperawatan Jiwa pada manusiaKonseptual Model Keperawatan Jiwa pada manusia
Konseptual Model Keperawatan Jiwa pada manusia
 
Pengenalan Figma, Figma Indtroduction, Figma
Pengenalan Figma, Figma Indtroduction, FigmaPengenalan Figma, Figma Indtroduction, Figma
Pengenalan Figma, Figma Indtroduction, Figma
 
Aksi Nyata Disiplin Positif Keyakinan Kelas untuk SMK
Aksi Nyata Disiplin Positif Keyakinan Kelas untuk SMKAksi Nyata Disiplin Positif Keyakinan Kelas untuk SMK
Aksi Nyata Disiplin Positif Keyakinan Kelas untuk SMK
 
MODUL AJAR MATEMATIKA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL AJAR MATEMATIKA KELAS 6 KURIKULUM MERDEKA.pdfMODUL AJAR MATEMATIKA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL AJAR MATEMATIKA KELAS 6 KURIKULUM MERDEKA.pdf
 
KISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docx
KISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docxKISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docx
KISI-KISI SOAL DAN KARTU SOAL BAHASA INGGRIS.docx
 
Program Kerja Public Relations - Perencanaan
Program Kerja Public Relations - PerencanaanProgram Kerja Public Relations - Perencanaan
Program Kerja Public Relations - Perencanaan
 
MODUL AJAR BAHASA INDONESIA KELAS 5 KURIKULUM MERDEKA.pdf
MODUL AJAR BAHASA INDONESIA KELAS 5 KURIKULUM MERDEKA.pdfMODUL AJAR BAHASA INDONESIA KELAS 5 KURIKULUM MERDEKA.pdf
MODUL AJAR BAHASA INDONESIA KELAS 5 KURIKULUM MERDEKA.pdf
 
Penyuluhan DM Tipe II Kegiatan Prolanis.ppt
Penyuluhan DM Tipe II Kegiatan Prolanis.pptPenyuluhan DM Tipe II Kegiatan Prolanis.ppt
Penyuluhan DM Tipe II Kegiatan Prolanis.ppt
 
PELAKSANAAN (dgn PT SBI) + Link2 Materi Pelatihan _"Teknik Perhitungan TKDN, ...
PELAKSANAAN (dgn PT SBI) + Link2 Materi Pelatihan _"Teknik Perhitungan TKDN, ...PELAKSANAAN (dgn PT SBI) + Link2 Materi Pelatihan _"Teknik Perhitungan TKDN, ...
PELAKSANAAN (dgn PT SBI) + Link2 Materi Pelatihan _"Teknik Perhitungan TKDN, ...
 
Memperkasakan Dialog Prestasi Sekolah.pptx
Memperkasakan Dialog Prestasi Sekolah.pptxMemperkasakan Dialog Prestasi Sekolah.pptx
Memperkasakan Dialog Prestasi Sekolah.pptx
 
Kenakalan Remaja (Penggunaan Narkoba).ppt
Kenakalan Remaja (Penggunaan Narkoba).pptKenakalan Remaja (Penggunaan Narkoba).ppt
Kenakalan Remaja (Penggunaan Narkoba).ppt
 
Topik 4_Eksplorasi Konsep LK Kelompok_Pendidikan Berkelanjutan
Topik 4_Eksplorasi Konsep LK Kelompok_Pendidikan BerkelanjutanTopik 4_Eksplorasi Konsep LK Kelompok_Pendidikan Berkelanjutan
Topik 4_Eksplorasi Konsep LK Kelompok_Pendidikan Berkelanjutan
 
TUGAS RUANG KOLABORASI 1.3 PRAKARSA PERUBAHAN
TUGAS RUANG KOLABORASI 1.3 PRAKARSA PERUBAHANTUGAS RUANG KOLABORASI 1.3 PRAKARSA PERUBAHAN
TUGAS RUANG KOLABORASI 1.3 PRAKARSA PERUBAHAN
 
Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...
Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...
Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...
 
MODUL AJAR MATEMATIKA KELAS 3 KURIKULUM MERDEKA.pdf
MODUL AJAR MATEMATIKA KELAS 3 KURIKULUM MERDEKA.pdfMODUL AJAR MATEMATIKA KELAS 3 KURIKULUM MERDEKA.pdf
MODUL AJAR MATEMATIKA KELAS 3 KURIKULUM MERDEKA.pdf
 
AKSI NYATA Numerasi Meningkatkan Kompetensi Murid_compressed (1) (1).pptx
AKSI NYATA  Numerasi  Meningkatkan Kompetensi Murid_compressed (1) (1).pptxAKSI NYATA  Numerasi  Meningkatkan Kompetensi Murid_compressed (1) (1).pptx
AKSI NYATA Numerasi Meningkatkan Kompetensi Murid_compressed (1) (1).pptx
 
RENCANA + Link2 MATERI Training _"SISTEM MANAJEMEN MUTU (ISO 9001_2015)".
RENCANA + Link2 MATERI Training _"SISTEM MANAJEMEN MUTU (ISO 9001_2015)".RENCANA + Link2 MATERI Training _"SISTEM MANAJEMEN MUTU (ISO 9001_2015)".
RENCANA + Link2 MATERI Training _"SISTEM MANAJEMEN MUTU (ISO 9001_2015)".
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

flash

  • 1. Pertama buat kotak dengan ukuran 15×150, kemudian ubah menjadi movieclip. Tentukan registrasi point di posisi bawah. beri nama “bar” pada instance name. Seleksi movieclip bar, buka panel action (f9) masukan syntak di bawah ini: 1 2 3 4 onClipEvent(enterFrame) { this._rotation -=5; }
  • 2. Klik frame 1, pada panel action ketikan syntak di bawah ini: 1 2 3 4 5 6 7 for(i=0;i<=700; i=i+20) { duplicateMovieClip(_root.bar,"bar"+i,i); _root["bar"+i]._x=i; _root["bar"+i]._rotation -=700/i*100; _ root["bar"+i]._alpha =i/700*100; } _root.bar._visible=0; Jalankan Movie. Cara ini lebih mudah dan gampang daripada menggunakan metode frame by frame atau motion tween, dan ukuran file swf relatif kecil. Buat dokumen flash baru (actionscript 3.0). 2. Pertama,ubah warna background stage menjadi hitam. 3. Buatlah movieclip baru dengan memilih menu Insert > New Symbol. Beri nama “Particle1”. Jangan lupa, centang pilihan Export for Actionscript kemudian isi nama class dengan “Particle1”.
  • 3. 4. Gambarlah sebuah garis seperti gambar berikut:
  • 4. 5. Ubah gambar di atas menjadi objek movieclip. 6. Buat animasi berputar seperti gambar berikut: Tampilan animasi 7. Sekarang kembali ke scene 1. Buka panel action, kemudian ketikan script berikut: 1 2 3 4 5 6 7 8 9 10 import flash.events.Event; import flash.utils.Timer; import flash.events.TimerEvent; var pos:int=50;//menentukan posisi awal objek var rot:int=0; //menentukan perputaran objek addEventListener(Event.ENTER_FRAME, animationLoop); function animationLoop(e:Event) { var obj:Particle1=new Particle1(); //memanggil objek
  • 5. 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 obj.x=pos; obj.y=pos; obj.rotation=rot; addChild(obj); pos++; rot++; } //membatasi perulangan animasi var timer:Timer=new Timer(1000,12); timer.addEventListener(TimerEvent.TIMER_COMPLETE, stopLoop); timer.start(); function stopLoop(e:TimerEvent) { removeEventListener(Event.ENTER_FRAME, animationLoop); } 8. Jalankan movie. 9. Selain itu, anda bisa berkreasi dengan bermacam-macam bentuk animasi tanpa harus mengubah kode actionscript. Anda hanya perlu merubah bentuk animasi pada contoh di atas sehingga menghasilkan bermacam-macam animasi seperti berikut: