?
Solved

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

Posted on 2005-04-27
3
Medium Priority
?
1,965 Views
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.
0
Comment
Question by:riprip25
1 Comment
 
LVL 5

Accepted Solution

by:
LingoMaster earned 500 total points
ID: 13883614
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"
end

The first question's wrong choices script would be

on mouseUp
 go to "wrong-1"
end

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)
end

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.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Suggested Courses

862 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