0% found this document useful (0 votes)
3 views2 pages

Score Evaluation in Interactive Frames

The document contains code for a quiz game. It initializes the score to 0. Buttons a, b, c, and d advance to the next frame when pressed, but only a increases the score. After the frames, the code checks the score and displays a message - if the score is below 75 it says to retry, if 80 it meets the minimum standard, and if 100 all answers were correct.

Uploaded by

ilmi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Score Evaluation in Interactive Frames

The document contains code for a quiz game. It initializes the score to 0. Buttons a, b, c, and d advance to the next frame when pressed, but only a increases the score. After the frames, the code checks the score and displays a message - if the score is below 75 it says to retry, if 80 it meets the minimum standard, and if 100 all answers were correct.

Uploaded by

ilmi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Frame 15

stop();

score = 0;

onEnterFrame = function () {skor = +score;};

Frame 16-20

stop();

[Link] = function() {

nextFrame();

score += 20;

};

[Link] = function() {

nextFrame();

};

[Link] = function() {

nextFrame();

};

[Link] = function() {

nextFrame();

};

Frame 21

stop();

if (score<=75) {

keterangan = "Nilai anda belum memenuhi KKM,silahkan ulangi kembali";

if (score==80) {
keterangan = "Bagus, nilai anda memenuhi KKM";

if (score==100) {

keterangan = "Alhamdulillah, semua jawaban anda benar";

You might also like