SHARE
TWEET

Untitled

raptor74 Aug 21st, 2019 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jawabanBenar.text = jawabBenar.toString();
  2. jawabanSalah.text = jawabSalah.toString();
  3. skor.text = score.toString();
  4. musikPilihan = "applause";
  5. skorKembali.addEventListener(MouseEvent.CLICK, kembaliSkor);
  6. function kembaliSkor(e:MouseEvent) {
  7.     channel.stop();
  8.     if(nomor_quiz == 0) {
  9.         jawabSalah = 0;
  10.         jawabBenar = 0;
  11.         gotoAndStop(2);
  12.     } else {
  13.         jawabSalah = 0;
  14.         jawabBenar = 0;
  15.         gotoAndStop(3);
  16.     }
  17. }
  18.  
  19. // Musik Berganti
  20. if( score == 100) {
  21.     channel.stop();
  22.     channel = musikApplause.play();
  23. }
  24.  
  25. // Memberikan Saran berdasarkan input
  26. bintang.visible = true;
  27. if(score >= 100) {
  28.     bintang.gotoAndStop(5);
  29. } else if(score < 90 && score >= 80) {
  30.     bintang.gotoAndStop(4);
  31. } else if(score < 70 && score >= 60) {
  32.     bintang.gotoAndStop(3);
  33. } else if(score < 50 && score >= 40) {
  34.     bintang.gotoAndStop(2);
  35. } else if(score < 40 && score >= 10) {
  36.     bintang.gotoAndStop(1);
  37. } else if(score < 10) {
  38.     bintang.visible = false;
  39. }
  40.  
  41. this,stop();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top