Note that there are some explanatory texts on larger screens.

plurals
  1. USCela
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COtoo late ;) I found a solution like this: I extended AnswerEvent to also an option of WRONG_ANSWER_EVENT and in AnswerGroup component I'm checking if the value is correct. If yes, then except for dispatching rightAnswerEvent, I save "true" to a var previous. If it's not correct, it checks what's the value of previous and if it's set to "true", i dispatch wrongAnswerEvent (which makes scoreCounter--) and set previous="false". Works just fine! Once again, thanks for all your help! Would never do it myself.. :)
      singulars
    2. CO@Constantiner awesome! thanks a million times! just one small thing... I want the user to get +1 if it was a correct answer and 0 if wrong. there's one situation, when this won't work: if the user chose correct (so he gets +1), then changed his mind and chose wrong. however, he still has this +1 from his previous answer.. can I "remember" what was the previous choice within each group and if the answer is wrong, it checks if it was correct before and in this case decrements the score? I'll try to think myself how to do it, but if you had a moment to explain that, I'd be in your debt forever!:)
      singulars
    3. CO@Constantin I'm really just a beginner... could you explain it more? how should my separate component look like and how would I reference it? I tried to do it, but i just get tons of errors. could you please give the answer according to my mxml code I showed in my question? thanks..
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload