• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

My correct display in my quiz is not adding.

Explorer ,
May 04, 2018 May 04, 2018

Copy link to clipboard

Copied

Hi ive made a small quiz, and in it on a button, i added a code :

go1._visible = true;

go1.onRelease = function(){

correct_display = Number(correct_display) + 1;

}

and on a text input i added the code :

correct_display._visible = true;

correct_display = "0";

stop();

i want the correct_display to be the answer of the result if correct to be 1 and to be added up to the correct_display.

ive got buttons that when release are to have the code : as go1, but would be go2,go3,go4,go5

go1._visible = true;

go1.onRelease = function(){

correct_display = Number(correct_display) + 1;

}

if (Number(correct) == 5) {

    comment = "5 RIGHT!! You obviously cheated.";

} else if ((Number(correct) <= 4) and (Number(correct) >= 3)) {

    comment = "So, how does it feel to be average?!?";

} else if ((Number(correct) <= 2) and (Number(correct) >= 1)) {

    comment = "Did you even try to get them right?";

} else if (Number(correct) == 0) {

    comment = "One word. LOSER!!!";

}

and no comments are displaying either.

TOPICS
ActionScript

Views

420

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation