How can I get the sum of my variables and display the total?

I wrote on a quiz and have each button by setting a variable, example: http://www.kreativitydesigns.com/Clients/Globus/Monograms/MBA_Test/deliverables/MBA_Quiz.h tml? mode = preview

However, when it hits the frame of "Rank" to calculate and display the total, it does not appear.

I do not have the text box named "Grade" on stage and variables have all received a value before entering this framework

Here is the code used to calcualte and output the result:

get the value of a variable and store

var FinalScoreHolder is q1 + q2 + q3 + q4 + q5 + q6 + q7 + q8 + q9 + q10 + q11 + q12 + q13 + q14 + q15 + q16 + q17 + q18 + q19 + q20 + q21 + q22 + q23 + q24 + q25 + q26 + q27 + q28 + q29 + q30 + q31 + q32 + q33 + q34 + q35 + q36 + q37 + q38 + q40 + q39;.

View rank

SYM. $("Grade") .html ("you scored" + FinalScoreHolder + "%");

See the result Page

If (FinalScoreHolder > = 89) {}

read the chronology of the given position (ms or label)

SYM. Play ("Pass");

} else {}

read the chronology of the given position (ms or label)

SYM. Play ("fail");

}

Any help would be greatly appreciated.

Thank you!

Your code is fine, but it seems that he can not do the values of your questions because if you put the values as below I get the expected result.

Q1 = 20;

Q2 = 63;

Q3 = 12;

get the value of a variable and store

var FinalScoreHolder = q1 + q2 + q3;

View rank

SYM. $("grade") .html ("you scored" + FinalScoreHolder + "%");

See the result Page

If (FinalScoreHolder > = 89) {}

read the chronology of the given position (ms or label)

SYM. Play ("Pass");

} else {}

read the chronology of the given position (ms or label)

SYM. Play ("fail");

}

Tags: Edge Animate

Similar Questions

Maybe you are looking for

  • My iPhone partners asking for my details.

    Hi Fellow of Apple nuts,. I got my wife a new iPhone 6, she already had a 5 c that we used my ID to get all apps and the music I had on my account. During the passage to 6 we saved the 5 c to my iCloud and so moved this back up to the 6. My wife has

  • lost in icloud mail Inbox

    Hello We lost our Inbox on our email icloud We can send the email from the account but can't receive emails and our history of mails in the inbox has disappeared help please

  • Motion 5.2.3

    I just realized my proposal is complete, some functions are not available and the 'Addition' content is gray to the someone can help?

  • iTunes card error

    I recently bought an iTunes card. I got an error that correctly says no Scanned.How, may only correct this answer please?

  • Satellite C650D-007 starts with a blank white screen

    Hello world I need emergency aid, 3 weeks ago, I bought this new laptop from Futureshop.ca and now, today, I pressed the power button to turn it on and when it does I get this white screen of white. I even tried removing the battery and connect the A