Basic quiz scoring

Hey, I'm trying to build a basic quiz – there are 6 questions and I want it to display a score at the end. Everything works and it shows a value at the end (but always '0'). It's not keeping proper scoring as users go along, it should be adding '1' point for each score, no matter what option is clicked it just traces '0' in the output window. Maybe something to do with the variable or? Kinda new to Flash, the chunk of code I believe to be the issue is below, thanks.
import flash.events.MouseEvent;
//varialbe for keeping score
var score:Number = 0;
//event listeners for button clicks, which will adjust the scoring array
rad1_btn.addEventListener(MouseEvent.CLICK, adjustScoreQ1);
rad2_btn.addEventListener(MouseEvent.CLICK, adjustScoreQ1);
rad3_btn.addEventListener(MouseEvent.CLICK, adjustScoreQ1);
rad4_btn.addEventListener(MouseEvent.CLICK, adjustScoreQ1);
//function for adjusting the scoring array
function adjustScoreQ1(e:MouseEvent):void
if (e.target == rad3_btn){
//add 1 point to the overall score if the user clicks on the third option
score += 1;
//check my scoring variable in output window
trace (score);

The code you show is not a problem in itself.   In that frame if you click the 3rd object you will get a 1 in the output.  The problem might have to do with how you implement the score variable in the timeline.  The score variable should be in a layer that extrends the length of the timeline to the end of the quiz.

Similar Messages

  • Quiz scoring incorrectly for non sequential questions

    Hi there!
    We are having some problems with a quiz scoring incorrectly.  We have a total of 17 quiz questions spread throughout a project.  There are 5 sequential questions at the end of the project.  When we preview the project, regardless of how you answer all 17 questions, only the 5 at the end are scoring. The review area indicates that the system knows there are 17 questions (i.e. 17 total question, 5 questions answered correctly) so it's recognizing them, just not scoring them correctly.  We're using version 5.0.1.624.  Any ideas?
    Thanks!

    Hello and welcome to the forum,
    First of all, please update your version, the latest version is 5.0.2.630  It is possible by the Help, Updates option.
    Could you check the Advanced interaction view/panel (F9)? It gives you an overview of all the scored objects, inc. question slides. Are all the question scores added to the Total score?
    Lilybiri

  • Quiz Scoring When Branching

    Hi all,
    I'm on CP5 for Mac.
    I have a short quiz with two questions. If they get the first question correct, I want to take the learner to a second question slide based on implicit feedback. If they miss the first question, I want to take the learner to a second, different slide that is, again, based on implicit feedback. Point is, I want to go to two different places depending on if the first question is correct. I know I can use an advanced action to make this happen.
    The second slide is basically asking the same question whether or not the learner got the first question right. My path looks like a "Y"... which means I have three questions in the quiz. I only want two questions to be scored. Here's my question: what kinds of problems will this approach present for CP? Is there a better workflow to create this type of quiz that I should be aware of?
    I have to report results to an LMS.
    Thanks,
    Kevin
    P.S. Lillybri, just getting this one out there to get some feedback while I go work your tutorials. :-)

    The above approach worked. I created a user variable called q1Correct. On entering the first question slide, I ran an action called initScenario and set q1Correct with a default value of 0 in anticipation of the learner getting the question wrong. On exiting the slide, if the learner answered the question correctly, I ran another action called q1IsCorrect and changed the value of q1Correct to 1; then I jumped to question slide 2. If the learner missed the first question, I just jumped to slide 2 - since q1Correct already had a default value of 0, indicating that the answer was wrong, I didn't need to run any actions on exit with an incorrect answer. On the second question slide, I checked the value of q1IsCorrect in a third (conditional) action, and showed my custom text accordingly. More specifically, if q1Correct was equal to 1 (meaning the answer was right), then I showed the appropriate text caption. Conversely, if q1Correct was 0 (meaning the earlier answer was incorrect), I showed another text caption.
    Case closed.
    Kevin

  • Quiz scoring seems to be all or nothing?

    Sorry if this is already answered elsewhere...
    I create 1 quiz slide, eg fill in the blank, and have 8
    blanks to fill in, and give the 'Points' field a value of 8.
    Yet when I take the quiz, I have to get all 8 correct to get
    the 8 points. If I miss even 1, I get 0 out of 8.
    (yes I could put each of the 8 blanks on its own fill in the
    blank slide, but that's not practical for what I'm doing)
    Why doesn't there seem to be a scoring option for 7,6,5...
    out of 8 correct? This also seems to be the case with other quiz
    styles. Why is it all or nothing scoring?
    Thanks for any help,
    Keith

    Hi Keith,
    I'm finding the same, unfortunately. What sort of Hitler
    designed the fill-in-the-blanks slide? "You scored less than 100%,
    you worthless wretch. You must walk the plank."
    How hard is it to loop through the fecking answers, checking
    each one against a value? It's 2 arrays and a loop.
    Please feel free to reply with a repudiation if we've
    overlooked something here.
    Thanks.
    Pete.

  • Quiz Scoring with infinite attempts

    Goal: When the user selects the wrong answer I want them to be able to continue to select answers until they select the correct answer BUT are graded "incorrect" for the score on that slide for picking the wrong answer first. I thought there was a way to do this but cannot find it. Suggestions.....

    Sorry, i wasn't very clear on why I'm looking to do this. I'm actually looking to do it in an assessment rather than a quiz. What I'd like to happen is this:
    -learner is given instructions and they need to click on an area of the screen.
    -the first time they click on the wrong area of the screen, a caption appears giving them a hint (i'm not using the built-in hints in captivate, i've built something else that accomplishes this)
    -the second time they click on the wrong area, a point is deducted from their score, and a caption appears telling them where they should've clicked. right now, i have this set up in captivate with a failure caption. i want the user to be forced to click the right area before they can progress in the assessment (hence the infinite attempts), but i want that second attempt to be scored.
    thoughts on how to do this?? any help is greatly appreciated!

  • Problem with quiz scoring

    I'm still having an issue with this.....
    Total of 30 questions spread throughout the project. The
    first 15 are set up as graded questions since I want to make sure
    the learner gets them right, but I don't want the scores reported
    so I have these set to zero point value and do not have report
    answers checked. The last 15 are also graded questions, 10 points
    each, and report answers are checked. Learner must get 70% or
    better to pass. When I go through the course, the results slide is
    showing total 30 questions and the number correct out of 30,
    although it is only calculating the score for the last 15. Somehow
    I need to separate these out so that only the last 15 are reported.
    I tried changing the objective ID, but it changes it for all 30
    questions so Captivate is looking at these as one pool of
    questions. Any thoughts?

    I don't see how you can specify some questions as "graded but
    not reported". If you want to know how the user did at all, the
    score must be reported.
    Since it sounds like the Quiz Summary page is the holdup, you
    might be able to get away with splitting the project into two
    separate files with two different values for "quiz passing":
    - one containing the first 15 questions (each scored as you
    would any other quiz question) but give it an overall quiz passing
    score of zero to ensure that the user always "passes"
    - a second containing the "real" test questions with a "real"
    quiz passing score
    That way, the Quiz Summary page will reflect only the
    questions in each file and you'll still have data for each set of
    questions: one set of "user score not held against them" questions
    and a set of "must achieve a minimum passing score"
    questions.

  • Remediation Quiz Scoring?

    I am using Captivate 6.  I have a project of 60 slides including 10 quiz question slides.  I am using Remediation.  When the quiz is launched, I want my users to review the information slide if they select the wrong answer and return to the quiz.
    My "attempts" is set to 1. 
    My Last Attempt sends my users to specific slides if they guess incorrectly.
    Each slide is set to "return to quiz"
    The Rememdiation process works great.  I've tested all the quiz slides by choosing an incorrect answer then jumping to the review slide then returning to the quiz to select the correct answer. 
    However, at the Results slide at the end of the quiz states that I have FAILED the quiz.   I don't understand why this is possible?  Each time I 'return to the quiz' I select the 'correct' answer.  Why would I get a Failing grade?
    Can someone please explain this to me?  And how I can resolve this issue?  I need my users to 'Pass" the quiz if they achieve a passing grade even if they had to use the 'remediation slides.' 
    thanks!!!

    Thanks for posting this. I had promised to explain the new functionalities in some articles, like I did in the past because of the lack of documentation by Adobe, but still didn't find the time and now have to transfer my blog to another host as well.
    Indeed, I would never have suggested to increase the number of attempts at all, it should be possible to change the answer when getting back from the content slide even with only 1 attempt.
    I will try to explain what I understand about 'Branch aware', a new feature as well. It makes the Quizzing system variables 'dynamic', instead of static. Normally when turned off, the maximum score, the number of question slides are fixed when the user takes the first question. If Branch aware is turned on, those values will be calculated dynamically from the question slides that are visited by the user. This means that if you provide a bunch questions for beginners, and another bunch for advanced users and the student chooses one of them, the maximum score and the number of questions that will appear on the score slide (and be used to calculate percentage and Pass/Fail status) are based only on that branch of questions.
    Your experience now could be explained (have to double-check, please beware) as follows:
    when the user comes back to a question slide, this is counted for a second time in the number of questions and its individual score is also added a second time to the maximum score
    when the percentage is calculated (did you show it in the score slide?), since the total score is now more than normal, that percentage will be lower than expected
    Pass/Fail status is checked based on that Percentage compared to the minimum percentage required, so this could explain the Fail status.
    Something I really have to check out, and hopefully when my blog is transferred, try to tell other users about my exploring. I already did detect a lot of problems, and most (if not all) are solved in the latest patches/upgrades. Maybe this is another aspect that should be addressed, or at least get a warning dialog.
    Here the links to the articles about question slides in previous versions:
    http://lilybiri.posterous.com/question-question-slides-in-captivate
    http://lilybiri.posterous.com/question-question-slides-part-2
    Lilybiri
    PS Only now checked your screenshots, did reply to your last mail. NaN means not available... so this could mean that Captivate is confused and didn't know or got stuck on updating the system variables cpQuizInfoTotalQuizPoints and cpQuizInfoTotalQuestionsPerProject. Default status is Failed, and since CP cannot calculate the percentage, this will be reported as Failed.

  • Quiz scoring

    I am working on a 60 slide presentation where I have
    "peppered" 20 quiz slides throughout the movie - on each question
    slide, Captivate has correctly numbered the questions (1 of 20, 12
    or 20, etc.). For quiz reporting, I'm simply setting up quiz mgr to
    generate an email with quiz score, etc. When I publish and test the
    file, Captivate is sending an email after question 1 - and saying
    the user failed the test (when they haven't even seen the remaining
    questions). Then it proceeds to send an email for each question
    and/or set of questions (in some places I have 2 or 3 questions
    grouped. Do all quiz slides need to be grouped together? Or is
    there something I'm obviously missing (maybe the brain is already
    in holiday mode?).
    I want all the question slides (20 total) to be totaled at
    the end of the movie, or at least the last question slide and one
    email generated indicating pass/fail.

    You are SO nice to send a sample to me. Thank you! That
    helped and worked until I changed one thing in the quiz manager
    setting -the reporting feature. Under the first tab - Reporting - I
    clicked on Enable reporting for this project and clicked on email -
    entered an email address and chose my report data, etc. Then when I
    publish and take the test, it goes back to sending an email for
    every question answered - not the total quiz summary (ultimately it
    fails the user since they haven't had the chance to answer all the
    questions) I have the questions set as follows:
    - The movie is always going forward - never backward at any
    point
    - The user is required to answer all questions
    - The summary slide immediately follows the last question
    - Questions are checked to be reported
    When I have all 20 questions grouped together at the end of
    the movie, everything works perfectly - until I want the results
    reported. I feel like I'm missing something obvious. The problem
    comes when I mix the question slides into the content slides and
    want to report the total number of questions in one report. We
    don't use an LMS (pretty small) and just dump info into Excel - the
    email has the data I need just not for every question - Captivate
    numbers the questions correctly it just doesn't wait for all 20 to
    be answered before it totals the score.
    Thanks for your patience.

  • Quiz scoring for multiple answers

    Hi there.
    I've got a quiz with a few questions that have more than one answer. For example, a fill in the blanks with 5 blanks.
    Is there any way to have the user score 1 point per blank? At the moment if I set it to 5 points, they still score 0, even if they get 4 out of the 5 correct.
    I'm trying to do the same thing for a matching question too (1 point per correct match).
    Thanks.

    Indeed. You can 'add' that score to the Quiz total (look in Advanced Interaction panel - F9) and the system quizzing variables take into account the score obtained by those interactive objects: buttons, shape buttons, Text Entry Buttons, click boxes and interactive widgets.  Have multiple examples on my blog (some claim it is worthless, incomprehensible) of custom question slides created with standard objects where the score is obtained using interactive objects.

  • Quiz scoring incorrect

    Hi
    A user has taken a quiz in a course. He failed the first time
    and so he did it again this time getting 100% of the questions
    correct. On his score page though it shows he has passed with a
    score of 88%.
    Is it taking his first attempt into account? If so how do I
    stop that happening and only get his latest scores?
    The quiz is feeding into SCORM LMS.
    Details read:
    Your score - 44
    Max Score - 50
    Questions Correct - 5
    Number of Questions - 5
    Accuracy - 88%

    Go to the Advanced Interactions and verify the values of each
    question and click boxes. Make sure no other click boxes have point
    values assigned to them. How many points is each question? 10?
    Take the LMS out of the picture. It is possible the LMS is
    doing some kind of averaging with all the attempts.
    For troubleshooting purposes, have the Captivate quiz email
    you the scores instead. It's a more reliable form of
    troubleshooting.
    -Ryan

  • Hide Quiz Continue button until all failed attempts

    Hello!
    I am using Captivate 8 and have a quiz that allows 3 failed attempts. It is set to jump to a slide if they pass and a different one if they fail. These work fine using the continue button.
    There is a retake and continue button.
    However, the continue button shows on the quiz results slide on the first and second failed attempt. If the user clicks this - the quiz is over - no more attemtps allowed (no playback bar if that would make a difference).
    The instructions say on teh failed attempts, "...if the retake button is showing, click it, otherwise, click continue."
    How can I hide the continue button on the first 2 failed attempts?
    I've been searching blogs and the answer may be out there - I'm just not piecing it together. I created an if/else statement to jump to the appropriate slide based on the quiz % scored, but it then bypasses the quiz results.
    I know there's a way!!
    Thank you for any advice!!
    Sherry

    Please don't apologize Lilybiri! Your input is ALWAYS appreciated
    Thank you for hte suggestion! In this instance, I want the continue button to show after no more retakes so layering it behind the Retake button worked well.
    The funny thing is by answering my own question I may have got my first 10 points!
    I learn so much from all of you experts - I am very grateful for the time each of you puts in and for all your sharing and help!!

  • How to add click box/button to QUIZ slides??

    We have a basic quiz for our online course. At the top of the
    quiz we have a navigation bar with next, back, main menu, help, etc
    which we use a click box to make link.
    However, when we're on a quiz slide the click box and button
    option are grayed out. You can't access them at all. How can we fix
    this?? We HAVE to have the top navigation be functional as it is
    for the rest of the slides. Help!

    I'm having the same general problem you are.
    I got this response a few days ago:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=464&threadid=1374767
    Its a little different question but I think the answer can be
    applied to both: Its not in the program to allow users to fully
    customize question slides. Unfortunate, but a reality I guess.
    -mphair

  • Change the way C4 scores quiz questions

    I updated to Captivate 4 hoping it would get along better with SumTotal 8.2. Now I see that the irritating course complete pop-up from SumTotal has not been resolved nor has the conflict between quiz scoring. SumTotal considers the course complete when the student reaches the minimum passing score. This behavior is really not very popular with users, they want to be able to score more than minimum. As I understand it, this behavior is a result of Captivate reporting pass/fail on each question rather than at the end of the quiz. Does anyone have a fix or workaround that changes the way Captivate scores a quiz? I want the student to anwser all of the questions in the quiz with the ability of scoring more than minimum. I appreciate any help you can provide.
    Danny

    Hello,
    I'm not using SumTotal as LMS but Blackboard, but think the solution could be the same. Have been using lots of assessments on the LMS, but never ask to report Pass/Fail but Complete/Incomplete. The score is passed anyway, but this allows the user to complete the Quiz totally. Is there any reason why you do not want that way of reporting? This has been discussed already quite a few times in the forum.
    Lilybiri

  • How do get access to Interaction Data programmatically

    First let me outline what I am trying to do and what my current restrictions are.
    Captivate Version: 5 and 6 (but really only 6, they are in the process of upgrading everything to 6)
    What I need:
    - Access to the Quiz's interaction data for each question.
    - I would like to have access to it utilmately in JavaScript.
    Restrictions:
    - The CBTs are hosted on a SharePoint site that I cannot modify, other than what is possible as a site admin (so no Internal server reporting)
    - An LMS is also not an option
    My current setup:
    I created an aspx page in SharePoint to load the desired Captive file by query string.  I created a JavaScript file to help me communicate with Captivate and capture the basic quiz results (pass/fail, total points, unanswered quiestions, etc) using the cpEIGetValue method.  My JavaScript results function (SubmitQuiz()) is called from the Captivate file on either a submit results button click or the OnPass/OnFail events.  With the result data in JavaScript, I then post (ajax) the results to a SharePoint list using the List web service.
    I know I can get each question's answer by having the captivate call a JavaScript method on question submit, but I was trying to avoid that (it means a fair amount of updates to each CBT), and even then I don't think that will give me access to all the interaction data that is provided when you use the internal server reporting method.  Captivate is clearly tracking the data that I want, I just can't find a good way to get to it.
    I have spent a decent amount of time researching this and any help with this will be greatly apperiated. 

    Erik -
    Thanks for your reply!
    I assumed the internal server meant local server or at least server on the same network, either way that is not an option for me.  The CBTs are in SharePoint, which we don't control and would not be allowed to put an aspx page or other handler to process the post and we arent allowed to setup a service or page somewhere to post to.  Unless if the CBT can post across the internet to a remote server, then its a no go.
    I thought have the SCROM approach and rewriting it all, but I have limited time for this and that just looked like a big headache.  I have read the posts on piperworks that show you how to clean up the code, I may have to revisit it at some point, if they really want me to.
    I will also see if I can modify the CP calls back to the API, do you know where those are made? Or are they just the OnSuccess/OnLastAttempt actions on the quiz? If so, that is the solution I ended up going with.
    Using the JavaScript API, user variables and some advanced actions on the OnEnter/OnSuccess/OnLastAttempt I was able to get pretty much all the interaction results that are stored. The only ones I could not seem to get, were the ObjectiveID, InteractionID and the CorrectReponse.  However, instead of InteractionID I am now using the slide name.  I put a Advanced Action on the OnEnter event of the slide, which is used to set a user variable (v_QuestionStartTimeMS) to cpInfoElaspedTime. By doing so I can calculate the latency in the OnSuccess/OnLastAttempt events (v_QuestionTimeLengthMS = cpInfoElaspedTimeMS - v_QuestionStartTimeMS). The rest of the OnSuccess/OnLastAttempt advanced action calls a JS method.  OnSuccess passes true, OnLastAttempt passes false to the TrackResult function.
    I am using the jQuery extend method to load objItem. 
    $.Results.GetDate() gives my the date as a string. MM/DD/YYYY
    $.CapHelper.GetVariable() a wrapper method I have that ends up calling cpEIGetValue()
    $.Results.GetTimeStr() converts MS to HH:MM:SS.mmm string format.
    function TrackResult(result) {
        var objItem = $.extend({}, $.Results.Objs.ResultQuest, {
            ResultDate: $.Results.GetDate() + " " + $.CapHelper.GetVariable("cpInfoCurrentTime"),
            SlideName: $.CapHelper.GetVariable("cpInfoCurrentSlideLabel"),
            InteractionID: "",
            ObjectiveID: "",
            InteractionType: $.CapHelper.GetVariable("cpQuizInfoQuestionSlideType"),
            CorrectResponse: "",
            StudentResponse: $.CapHelper.GetVariable("cpQuizInfoAnswerChoice"),
            IsCorrect: result,
            Weight: $.CapHelper.GetVariable("cpQuizInfoPointsPerQuestionSlide"),
            Latency: $.Results.GetTimeStr($.CapHelper.GetVariable("v_QuestionTimeLengthMS"))
        _objResultDetails.push(objItem);
    I was hoping for a more elegant solution where I could just get all the data at the end of the quiz, like the internal server reporting option and send it all back at once.  Captivate is clearly tracking all that data, it would be nice if they exposed it so you could do what you want with it.
    Again, thanks for your input Erik. I will look into what you suggested as time permits.
    Phil

  • Show an image for incorrect click box response

    Is there a better way to show a "Please Try Again" image for a click box response?
    1.  Add click box.
    2.  Set to 1 attempt
    3.  If clicked correctly, advance to next slide.
    4.  If clicked incorrectly, continuing playing current slide
    5.  Add "Please Try Again" image in timeline to show AFTER click box Pause.
    6. If I want to allow multiple failed attampts before moving to the next slide, duplicate items 1 - 5 above, adding it later in the timeline,
    The above method works if Quiz Scoring is turned off.  If Quiz Scoring is turned on, would I have to start using variables to score the quiz?  Each click box would set a variable to TRUE once they get the question correct, whether it was the first attempt or the third attempt.
    Micky

    BTW - This is Captivate CS5.
    Just thought of a better solution.
    After incorrect, redirect to the beginning of the current slide, so it plays from the beginning again.  this way, I would have to duplicate a click box and "please try again" image 3 times for 3 attempts in the same slide.
    However, this method would not let me specify the number of attempts, unless that was stored in variable.
    hmmm....
    One second thought, it may be better to just duplicat the items to reflect the number of attempts I want on that page.  This would let me include a highlight box after the last attempt so they can learn where to click correctly.  We don't want them caught in an endless loop of ignorance! 
    As for scoring, I wouldn't have to use variables if I directed them to a "Correct" screen that as a "Click to continue" click box that gave them the point.  Though that might be a little clunky.
    Thanks for letting me think through my problem on this forum.  ;-)

Maybe you are looking for

  • Web Analytics reports

    I am trying to get the Web Analytics reports to run, and have the Microsoft SharePoint Foundation Site Inventory Usage Collection , Microsoft SharePoint Foundation Usage Data Import , and Microsoft SharePoint Foundation Usage Data Processing jobs are

  • Error installing cc on mac running parallels win 7 pro

    new mac arrived today installed parallels installed windows 7 pro paid for lightroom and photoshop on a monthly basis tried to install creative cloud failed and failed and failed and failed...... error 1001. spoke to adobe support in timbuktu, absolu

  • Regex pattern question

    Hi, I'm trying to get my feet wet wtih java and regular expressions, done a lof of it in perl, but need some help with java. I have an xml file (also working through the sax tutorial, but this question is related to regex)that has multiple elements,

  • Mouse over for pop-up

    Is it possible in Acrobat 8 to create a mouse over option that would reveal a pop-up? For instance, I have a map and I would like a persons name to pop-up when someone mouses over a state. Thanks Dave

  • Importing cd/dvd data catalog

    Hello, I am starting to use DiskLibrary to catalog my cds and data dvds. I am asking for some help on importing data from cdTree, a Windows application I use from several years. This cataloguer allows to export in CSV (comma delimited), XML, XLS (hie