A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flash True False Quiz - How do I keep score?

  1. #1
    Junior Member
    Join Date
    Jun 2009

    Flash True False Quiz - How do I keep score?


    I have a pretty simple true false quiz I've set up in flash. It's 16 questions and I have each question is in it's own movie clip. I need a way to keep and display the score. I've looked through the forums and online and I have come up empty. If someone could help me I would greatly appreciate it!

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Here, no there
    Regardless if they are the different MCs in the same main MC or different MCs outside of the main MC, you'll need a main timeline which holds a global variables. Each MC will update that variable (it could be an array which hold both the correct and incorrect). WHen you're done, again regardless of how the individual questions are loaded, that global MC will contain the total right and wrong.

    So you'll need a global variables that holds, at least the number of correctly answered questions, and each of your movie clips calling a common function and updates that variable each time the user get it correct.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center