simple code to ask 3 Multiple choice questions and a score at the end in Lingo (Director)

Posted on 2005-04-27
Last Modified: 2013-12-24
Can anyone please help me a simple multiple choice quiz of 3 questions for director.

I am new to Director and need some guidence. I have tried to use some of the example quizez, but once I load the quiz into my program either the questions do not appear or
I get various error messages of values not found etc.

All help would be appriciated.

Thank you.
Question by:riprip25
    1 Comment
    LVL 5

    Accepted Solution

    One possibility is the example code you tried was appropriate and might need just a tad better understanding of the code to make it fall into place.

    The simplest example I can think is having 3 different frames for each question, the question page, the right and wrong answer feedback pages. One would program the answer choice buttons to jump to the right result marker. This scheme is not very clever or elegant, but if there are only a few fixed questions it migh prove to be the fastest solution.

    The first question's right choice script would be

    on mouseUp
     go to "right-1"

    The first question's wrong choices script would be

    on mouseUp
     go to "wrong-1"

    these 2 separate result frames would display the right and wrong feedback messages.

    Each right feedback frame like under marker  "right-1" could have a score script that would increment the score.

    on exitFrame
     scoreVal = value(member("scoreDisplay").text)
    member("scoreDisplay").text = string(scoreVal + 1)

    The next question could have copie of the 2 same button scripts edited to go to markers "right-2" and "wrong-2" , etc.

    Other refinements to this score based quiz could include having feedback score sounds in the right/wrong feedback screen.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Android App Development

    This course will involve creating widgets, customize list view, grid view, spinners, etc. Creating applications using audio, video, and SQLite database. Ending with publication on Google Play.

    Suggested Solutions

    When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
    Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
    The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: :…
    The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and Log…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now