Anda di halaman 1dari 2

Action Script

Action Script Perpindahan Scene (berada pada tombol) :


on(release){
gotoAndPlay(Scene 2,1);
}
Action Script Perpindahan Frame (berada pada tombol) :
on(release){
nextFrame();
}
Action Script Memutar Video (berada pada tombol) :
on(release){
gotoAndStop(2);
}
Action Script untuk menghentikan suara (berada pada tombol) :
on(press){
stopAllSounds();
}
Action Script untuk mengganti kursor mouse (berada pada movie clip) :
onClipEvent (enterFrame) {
Mouse.hide();
startDrag(this, true);
}
Action Script untuk Maximize (berada pada tombol) :
on(release){
fscommand(fullscreen,true);
}
Action Script untuk Minimize (berada pada tombol) :
on(release){
fscommand(fullscreen,false);
}
Action Script untuk Quit (berada pada tombol) :
on(release){
fscommand(quit,true);
}
Action Script pada Dynamic Text untuk kuis (berada pada frame) :
if(skor>=30){
komentar = "PERTAHANKAN PRESTASIMU";
}
if(skor<=20){
komentar = "BELAJAR LAGI YA";
}
Action Script pada tombol jawaban yang benar (berada pada tombol) :
on(release){
skor += 10;
nextFrame();
}
Action Script untuk pergerakan pada Movie Clip (berada pada frame)
onEnterFrame=function(){
NamaMC._rotation+=10;
NamaMC._x+=10;
NamaMC._y+=10;
}
Action Script untuk menggerakkan Movie Clip (berada pada tombol)
on(release){
NamaMC._x=NamaMC._x-10;
}

Anda mungkin juga menyukai