Variables And If Statments For Quiz
I am setting up a math tutorial for my students and I need some help. I want to set up a question and then have the students answer the question and be able to check if they are correct. If they are correct I want the movie to continue and if they are wrong then I want them to go back to the question and try again.
Here is a sample question
What is the ratio of snowmen to carrots
answer 5 to 3
Thanks
Glenn
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-20-2003, 06:12 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help With Variables On A Quiz
Hi, i am making a quiz on flash 8 at which each time you answer right to a question, the timeline jumps to an animation, and if you get it wrong, it jumps to another animation. There are various animations of win and lose and i dont want them to repeat after showing once. You win the game by getting 5 questions right or lose by getting 5 wrong.
I was thinking of doing this with variables but i'm a not conftorble using em.
I thought i could put var win = 0; and var lose = 5;. Then each time we would lose it would subtrack 1 to the lose variable in the beggining of the animation and then we put an if lose = 4 and win = 5 goto next question.
I know its a little confusing but i'm not even sure of what i'm talking about. As you can see i need serious help. Am i on the right track, if so can you explain to me very detailed how to do it? If not, what would be the best method?
Ok here is a fla file of how my scene is setup. I want it to circulate through the wins and loses!
(from the attatchment file i provided)
From frame 1-12 its just the beggining menu.
From frame 13-21 are the questions
on those frames are movieclips with the questions inside them on the layer "questions" . Ony frame 13 has this a question.
From frame 28 to 37 are the movieclips of losing and winning.
Some help would really be apreciated.
Thank you
If Statments
what I wish to do is the following
create an if statment that looks like this
if (_root.movieclip is at frame X){
statment;
}
can I evaluate this?
can anyone helpme out?
thanx in advance
If.. Else.. Statments
ok I was wondering if you can have more then one condition before you have to use the else statment. Example:
if (variable = whatever) (and) (variable2 = whatever){
gotoandplay (frame 1)
} Else...
I want to connect both of those 2 conditions is there a special operator that can do this or is it not possible?
It is kind of hard to explain but I hope this does it.
Thanks for your help.
Josh
If Statments
Here goes :S I've got animations from clicking the button to the page and then the same one but backwards back to the main menu.. and i'm working on a submenu for that.
Heres the problem.. i really need to keep the file size small so i've only put on each page the animations of the content coming up etc..
but i cant make a menu that when you click the button you want it will play the rest of the fade out animation on that scene then forward to the scene of witch the button you pressed...
Heres how i see it working and how i fort i had it working :S
Button Action Script.
on (press) {
page = "websites";
}
on (release) {
gotoAndPlay(65);
}
Frame 90 Action Script.
if (page = websites) {
gotoAndPlay("portfolio websites", 1);
}
I would of then set up Else If's for each link however this didnt work. so i dont know whats going on.. I Set up a text box with var=page and set page=none on the first frame and when you click the button the page does change to 'websites' and it is on websites the animation passes over frame 90. So i dont know is it my if? or do i need to declare the page varible? i just dont know.
If Statments
hi there
i have two statments one is the key
second is the Box
if the key isvisible then i hitTest the the Box it will open
else dont open it
but the Key when i hit Test it it
how can i right it plz help
the code i used is this
Code:
onClipEvent(enterFrame){
if(this.hitTest(this._parent.boy) == (_parent.box._visible == false)){
this.gotoAndPlay(2);
}
}
MC If Statments...
I am having trouble figuring this one out. First off I am using Flash 8 Pro... My goal here is to have this MC fade in and out when I mouseOver it and mouseOut of it. The issue is that when I mouseOver the MC it fades the content in, but when I mouseOut it tries to fade at whichever frame it's currently on. How can I tell it to fade only IF the playerhead is on the fadeout frame and has finished with the fade IN... I know there has to be a way to make this work seamlessly. All help is appreciated!
Code:
LightBulb.addEventListener(MouseEvent.MOUSE_OVER, mouseOver);
LightBulb.addEventListener(MouseEvent.MOUSE_OUT, mouseOut);
function mouseOver(e:MouseEvent):void {
if (LightBulb._currentframe == "1") {
LightBulb.gotoAndPlay(2);
} else if (LightBulb._currentframe == "<1") {
LightBulb.gotoAndPlay(38);
}
function mouseOver(e:MouseEvent):void {
if (LightBulb._currentframe == "39") {
LightBulb.gotoAndPlay(40);
} else if (LightBulb._currentframe == ">40") {
LightBulb.gotoAndPlay(2);
}
IF Statments
Code:
if (time.hours > 21) {
fish_mc.gotoAndPlay(3);
}
if its 22 hours now, how come it wont goto frame 3 of the fish_mc !?
it stays stuck in frame 1!?
its part of a whole code...
Code:
_root.time = new Date();
_root.time.seconds = _root.time.getSeconds()
_root.time.minutes = _root.time.getMinutes()
_root.time.hours = _root.time.getHours()
if (time.hours > 21) {
fish_mc.gotoAndPlay(3);
}
Maybe you read my other post about the goldfish thing?
well frame 3 is a mc of the fish sleeping, hense it should be in bed... but fram 1 is just an empty bowl.
please help!?
If not through here then through email? c_warters@hotmail.com
Thankyou!!!
If...Else Statments
Anybody know how I can clean up this block of code
Code:
if(imageInt0 == undefined){
trace("image0 undefined");
} else{
loadImage_mc.imageEmpty0.attachMovie("imageInt0_mc", "imageInt0_mc1", newDepth);
}
if(imageInt1 == undefined){
trace("image1 undefined");
} else{
loadImage_mc.imageEmpty1.attachMovie("imageInt1_mc", "imageInt1_mc1", newDepth);
}
if(imageInt2 == undefined){
trace("image2 undefined");
} else{
loadImage_mc.imageEmpty2.attachMovie("imageInt2_mc", "imageInt2_mc1", newDepth);
}
if(imageInt3 == undefined){
trace("image3 undefined");
} else{
loadImage_mc.imageEmpty3.attachMovie("imageInt3_mc", "imageInt3_mc1", newDepth);
}
if(imageInt4 == undefined){
trace("image4 undefined");
} else{
loadImage_mc.imageEmpty4.attachMovie("imageInt4_mc", "imageInt4_mc1", newDepth);
}
if(imageInt5 == undefined){
trace("image5 undefined");
} else{
loadImage_mc.imageEmpty5.attachMovie("imageInt5_mc", "imageInt5_mc1", newDepth);
}
Thanks in advance.
Help With Quiz And Setting Variables
I am working on a quiz that loads random external .swfs into an invisible movie symbol and I want the user to press a button as an answer and than hit submit where if the answer matches the external swf than go to frame("correct") or if wrong go to frame ("tryagain"). I am stuck on how to make the external swf have an variable value and how to set it equal to the answer...So far this is my script:
in frame1:
code:
//declare buttons variable
var useranswer:Number;
var answer:Number;
on each button:
code:
//set variable useranswer to value of 1
on (release){
set (useranswer, 1);
}
on the invisible_mc:
code:
//checks to see if the external swf letter1.swf is loaded. if so than
//set var answer's value to 1. or if letter2.swf is loaded than set it to 2.
//if neither is loaded that go to frame "quiz"
onClipEvent(load){
if (letter1.swf){
set(answer,1);
}else if (letter2.swf){
set(answer,2);
} else {
gotoAndStop("quiz");
}
}
on submit button:
code:
//checks to see if var useranswer's value is equal to answer's value
//if it is then go to "correct" frame. if not then go to "tryagain"
on (release) {
if (useranswer == answer) {
gotoAndStop("correct");
} else {
gotoAndStop("tryagain");
}
}
I am thinking that the code on the invisible mc shouldn't be there but I am no t sure where I am suppose to place it.
I am going insane figuring this out and could use help.
Thanks
Samantha
EDIT: Added [ as ] tags for readability - jbum
[F8] Quiz Choice Variables
Hello!
Im making a quiz, that has 10 questions in.
I want flash to chose out of 50 questions 10 randomly, and for flash to check to make sure it hasnt chosen two questions that are the same, and if it has it must choose another question so all are different.
It must then assign the questions and answers to variables (question1, question1.choice1 etc).
Can anyone help?
Flash Quiz Variables
I'm assuming this is possible with ActionScript
I have a simple quiz using the built-in learning interactions from Flash MX 2004.
I have an HTML file that I start that plays the SWF file.
I would like to pass the Flash variable "QuizTrack.total_correct" to the HTML file.
Any thoughts about the best way to do this?
DJB
Tracking Quiz Variables
Hi all
The code below will track how many questions were answered right and wrong and it works great, however I want to trap which question the user missed and compile a list of the questions missed. I know it lies in this section of the code but how would I tie the variable userAnswerNumber to the question and have a list of all questions missed?
ActionScript Code:
if (userAnswerNumber==this.getCorrectAnswerNumber())
gotoAndPlay("Correct");
else
gotoAndPlay("Wrong");
Here is the all the code for your reference.
Thanks
ActionScript Code:
function QuizItem(question)
{
this.question=question;
this.answers=new Array();
this.numOfAnswers=0;
this.correctAnswer=0;
this.getQuestion=function()
{
return this.question;
}
this.addAnswer=function(answer, isCorrectAnswer)
{
this.answers[this.numOfAnswers]=answer;
if (isCorrectAnswer)
this.correctAnswer=this.numOfAnswers;
this.numOfAnswers++;
}
this.getAnswer=function(answerNumberToGet)
{
return this.answers[answerNumberToGet];
}
this.getCorrectAnswerNumber=function()
{
return this.correctAnswer;
}
this.checkAnswerNumber=function(userAnswerNumber)
{
if (userAnswerNumber==this.getCorrectAnswerNumber())
gotoAndPlay("Correct");
else
gotoAndPlay("Wrong");
}
this.getNumOfAnswers=function()
{
return this.answers.length;
}
}
Trace Statments Being Ignored
my debugger just stopped working... totally ignores all of my trace statments. works on other fla's, just not on the one i need. did i disable it somehow? has this ever happened to anyone?
tnx, i know its a dumb question, sry
Multi If Statments
something that has been bothering me for sometime that no book or teacher has told me, is what to do when i need a condition higher than another.
example: if value great 10 then something, but if value is also great than 20 then do something else.
example:
function healthbaranimtion(){
if (value>=10){bar animation speed = 10};
if (value>=20){bar animation speed = 20};
if (value>=30){bar animation speed = 30};
}
so how do i get the bar animation speed to equal 30 if value is ++30?
Loop Statments
Hi
If I have a variable called i and it has an intial vaule of 0 how easy is it to builder a counter that increases the value of i by 1 everytime the user clicks on a button - do you need a loop statment and if so how do you use it.
I am new to this kind of thing so if anyone can give me some pointers that would be great.
Cheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeers
Quiz Template And Passing Variables
Here's the movie itself
http://www.trainohio.com/equiz.htm it's only 4 short/goofy questions to test this
out....
The asp page labels all of the different variable I am trying to use to get
this to work.
I want to drop variables into a MySql DB. I am using ASP to help.
I am using the template Quiz that came with MX. During the quiz the counter
is created and the results are displayed on the last frame of the movie.
I want to take the results and pass them to the ASP page to be submitted to
the DB.
The results show up in a dynamic text box labeled
QuizTrack.Total_Correct
QuizTrack.Total_Wrong
QuizTrack.Percent_Format
These varialbes are on the root of the movie. I have tried many things to
pass these dynamic variable out of Flash Player and into ASP. NOTHING WORKS.
Right now I have
loadVariables ("test-confirm.asp", _blank, GET)
I use GET so I can see what's going on in the URL but would rather use POST.
I have placed the loadVariable on the same frame as the results page. No
Luck
I have used getURL ("test-confirm.asp",_blank, GET) No Luck
What code do I need and where should I put it??
Please and Thank you for your help.
-J
Quiz With Variables In Questions And Responses
Hello,
I am a 6th grade teacher that currently uses the LOGO programming language with my students. I give my students an assignment to create an interactive quiz with: multiple choice, short answer, true /false, and identify the image type questions. I would love to do this assignment in Flash MX.
The built in template would be fine but it is missing the key component of a dialog with user-generated variables. Specifically, the student’s program solicits the user for their name at the beginning of the quiz and incorporates the name variable into the computer’s responses to correct or incorrect answers. ( “Good work Dave”, “Wrong answer Dave”).
I would also like to modify the interface to replace the check answer button with a simple display of the response for a set amount of time and then a move on to the next frame/question. I am eager for my students to think about nuances of interactivity and the illusion of a dialog between the computer and the user of their program.
Can someone direct me to a tutorial or examples that will help me understand how to set this up?
Thanks
Trapping Quiz Response Variables
Hi all
The code below will track how many questions were answered right and wrong and it works great, however I want to trap which question the user missed and compile a list of the questions missed. I know it lies in this section of the code but how would I tie the variable userAnswerNumber to the question and have a list of all questions missed?
[as]
if (userAnswerNumber==this.getCorrectAnswerNumber())
gotoAndPlay("Correct");
else
gotoAndPlay("Wrong");
[/as]
Here is the all the code for your reference.
Thanks
[as]
function QuizItem(question)
{
this.question=question;
this.answers=new Array();
this.numOfAnswers=0;
this.correctAnswer=0;
this.getQuestion=function()
{
return this.question;
}
this.addAnswer=function(answer, isCorrectAnswer)
{
this.answers[this.numOfAnswers]=answer;
if (isCorrectAnswer)
this.correctAnswer=this.numOfAnswers;
this.numOfAnswers++;
}
this.getAnswer=function(answerNumberToGet)
{
return this.answers[answerNumberToGet];
}
this.getCorrectAnswerNumber=function()
{
return this.correctAnswer;
}
this.checkAnswerNumber=function(userAnswerNumber)
{
if (userAnswerNumber==this.getCorrectAnswerNumber())
gotoAndPlay("Correct");
else
gotoAndPlay("Wrong");
}
this.getNumOfAnswers=function()
{
return this.answers.length;
}
}
[/as]
Key Press Mutiple If Statments Or Use The If Else
does any know the difference because in this example both wrk the if statement followed by multiple else statements
or using multiple if statements key presses,what is the difference between the two examples .
if(Key.isDown(Key.LEFT) ) {
this._x -= 5;
} else if(Key.isDown(Key.RIGHT)) {
key_press = 2;
this._x += 5;
} else if(Key.isDown(Key.UP))
this._y -= 5;
//////////////////////////////////////////////////////////////////////////////////////
-------------------------------------------------------------------------
seperate
if(Key.isDown(Key.LEFT) ) {
this._x -= 5;
if(Key.isDown(Key.RIGHT)) {
key_press = 2;
this._x += 5;
if(Key.isDown(Key.UP))
this._y -= 5;
Help With My True/false Statments
[CODE]onClipEvent(load){
speed=3;
gravity=-1;
base = true;
}
onClipEvent(enterFrame){
if (Key.isDown(Key.UP)){
this._y-=speed;
base = false;
}
if (this.hitTest(_root["base"])){
base = true;
}
if (Key.isDown(Key.UP)){
this._y-=speed;
base = false;
}
if(base = true){
this._y-=gravity;
}
}[/CODE]
trying to make a game, where you start on a base "base" then you fly your ship up with the arrow key up, and when you leave go of the key, you get pulled down by my gravity... but the only way gravity works if if i put
[CODE]if(base = true){
this._y-=gravity;
}[/CODE]
but then gravity always works expect when i got up, down.
if i set it to false, it never works
Help With Multiple Choice Quiz And Displaying Variables
Hi,
I have created a simple multiple choice quiz for kids (I have followed a tutorial) in which I have created variables which store the answers to the questions. What I'm not sure how to do is at the end of the quiz display the answers back to the users. I thought it might be simply be a case of creating a dynamic text field and putting in the variable name in the var box, but this doesn't work. I've attached the fla so you can see what I've done.
Any help would be much appreciated
Thanks
Bev.
Radio Button Quiz Help - Storing Answers In Variables
Hi,
I've started to create a quiz which currently has just one question, and 4 radio button answer choices.
I written a couple of lines of code involving a listener that correctly collects the contents of the 'data' parameter for these radiobuttons (3 contain 'wrong' and 1 has 'right' for the correct answer) and I've checked this through a trace command.
However, I get stuck here and can't implement further features of the quiz. I want to be able to tally up the answers at the end, and offer feedback for any questions that were wrong.
I keep trying various techniques e.g. a boolean type variable to hold the answers, an array, but my coding skills are holding me back.
Can someone please give me an idea as to what I should be looking to do to implement such a thing. The file is attached below.
Thanks, your help is much appreciated.
Sukhraj
How To Create Variables To Hold Radiobutton Data For Use In Quiz
Hi,
I'm creating a quiz, and as yet, have just created the first question. It has 4 multiple choice answers, one of which is correct. I've used radiobuttons for these and have created an event listener to check for the selected option (below):
_global.q1answer;
var answerListener:Object = new Object();
answerListener.click = function(eventObject:Object)
{
var question1Label:String = eventObject.target.selection.data;
trace(question1Label);
}
question1.addEventListener("click", answerListener);
next_btn.onRelease = function() {
q1answer = question1Label;
nextFrame();
};
The trace returns the correct value that is held in the data parameter of each radiobutton.
However, I want to be able to manipulate this value further e.g. to check whether the answers are correct and then output feedback on incorrect answers etc at the end of the quiz. I used a global variable to hold this value and just tried to call it in, in a dynamic text field (q1_txt) in the next frame with the following code, but it keeps saying 'undefined':
q1_txt.text = _global.q1answer;
Can someone please point out what may be the problem, and whether there is a better way of doing what I'm trying to do.
I can post the file if you want, and would appreciate it if you could help me out.
Thanks
CREATING A TEXT FILE WITH HTML STATMENTS
Hello,
this is a complex one (for me anyway). on a particular host there is no Database support. So I decided to use text files that flash reads (no problem so far).
Now I would like to do something a little bit further. I would like to have a flash page where you can literally edit text, and it creates a text file or ammends an existing text file. Also, what would be an extra bonus, would be that when creating the text file (to be read in an HTML textbox) you could have an interface to select which portions of the text you want bold and size and font.... I know i know this is a lot to ask, but the first part would be fine. If there is a tutorial on this, or some example somewhere on the web that would be great.
Thanks in advance.
Way To Many Else If Statments Make Flash Crash - Other Solution?
I've been trying to write a flash program that will allow the user to enter either a number, or title and compare it to a rather large list (else if statements). So if someone searches for a number or name it will go down my else if statements looking for it until it finds it. Only about 2/3 of the data I've enetered seems to work (the data was done with another program I wrote and am Absolutly sure that the data was entered correctly and there isn't a syntax error in my else if's). I've traced through the program with no luck and am thinking that there are just too many else if's for flash to handle. There are over 1200 else if's in my program. Is there an easier / faster way for flash to perform the same thing?
Code snippet:
on (release) {
_root.createEmptyMovieClip( "image_container", 0 );
if (EnteredDATA == "SW 6988" or EnteredDATA == "6988" or EnteredDATA == "Bohemian Black"){
SWATCHNUM = "SW 6988";
SWATCHNAME = "Bohemian Black";
YESNO = "Yes";
loadMovie("Graphics/SW6988.a.jpg", _root.image_container);
setProperty(_root.image_container,_x,32);
setProperty(_root.image_container,_y,221);
}
else if(EnteredDATA == "SW 6766" or EnteredDATA == "6766" or EnteredDATA == "Mariner"){
SWATCHNUM = "SW 6766";
SWATCHNAME = "Mariner";
YESNO = "Yes";
loadMovie("Graphics/SW6766.a.jpg", _root.image_container);
setProperty(_root.image_container,_x,32);
setProperty(_root.image_container,_y,221);
}
Drag And Drop Quiz - Why Do Targets Keep Appearing In Subsequent Quiz Questions?
I'm trying to create an e-learning quiz that will be a series of drag and drop questions (one per page). The user will be asked a question and will have 8 images visible, but only one of them is correct. So, there are 8 drags to one target.
When the user drags an incorrect image to the target, a text image appears that says to try again, and the image will return to its original location. When the correct question is dragged to the target, a button appears that will take them to the next question. Everything was working until I started to create question 2. I created new drag and drop instances for question 2, but it seems that the images from question 1 continue to be visible in the subsequent question(s) when testing my movie. Depending on how many choices I try to drag before I pick the correct answer in question 1, I also find that some of the button states are no longer active in question 2. What I am doing wrong?
I'm new to AS3 and actionscript in general. Part of my code is based on this tutorial: http://www.monkeyflash.com/flash/drag-and-drop-in-as3/.
I'm attaching my .fla file in hopes this will help others who are having the same problem.
How To Create A Quiz With Free Quiz Template In Adobe Flash
This article will demonstrate how to create a simple online quiz, complete with options for feedback, scoring and tracking, using free Flash quiz template. Please ensure you can manage to use Adobe Flash MX, Flash 8, Flash CS3, or Flash CS4 (http://www.adobe.com/products/flash/) before attempting this.
The quiz template is included in Flash MX and above versions, and it is designed to automatically track results and send them to a learning management system configured for your quiz. Furthermore, it should be SCORM and AICC compliant for using in Learning Management System (LMS).
If you're not sophisticated with Adobe Flash editing, you might be interested in the Flash quiz tool Wondershare QuizCreator (http://www.sameshow.com/quiz-creator.html) for rapid development as replacement.
First of all, you can download a 30 day trial version of Adobe Flash from the Adobe's official website (http://www.adobe.com/downloads/).
1. Create a new Flash document choosing the existing Quiz template.
File >New > Templates tab > 'Quiz' Category > 'Modern Photo Quiz_style2 ' Template
2. A fully functional quiz with templates for Drag and Drop, Fill in the Blank, Hot Objects, Hot Spot, Multiple Choice, and True or False, will open.
3. Test the movie
Control > Test Movie
4. Save the Flash document, giving it a name.
File > Save
- Customize Quiz Template
For detailed instructions on how to edit the quiz template to your requirements, learn the official Flash quiz template tutorial at http://www.adobe.com/support/flash/a...quiz_tutorial/.
- Adding A Single Quiz in Flash
You can add any question types as a single quiz (e.g. true or false type) into your Flash document at any time, however these standalone quiz interactions, when used outside of the quiz template, are not designed for SCORM tracking in LMS.
1. If you want to insert a single quiz as learning interaction, you can just do like this:
Window > Common Libraries > Learning Interactions
2. A library of the various learning interactions will open up. Drag the one you want onto the stage.
- Alternative Flash Quiz Solution
As we know, not every user can use Flash programming perfectly to create quizzes. So over the market, there's some rapid quiz authoring tool like
Wondershare QuizCreator (http://www.sameshow.com/quiz-creator.html) to help make Flash quizzes in an easier way.
At last, for more knowledge about using Adobe Flash MX, Flash 8, Flash CS3, or Flash CS4, please refer to Adobe Flash Support Center:
http://www.adobe.com/support/flash/.
Bulk Import Statments Vs. Specific Import Statements...any Performance Difference?
Lets say I have 20 classes located at nl/amsterdam/simulation/model/. Now I'm writing another class that is going to use some of those 20 classes. Is there any performance difference in the compiled swf if I import them all using a wildcard:
Code:
package nl.amsterdam.simulation.view
{
import nl.amsterdam.simulation.*
...
versus importing each specific one that I need?:
Code:
package nl.amsterdam.simulation.view
{
import nl.amsterdam.simulation.model.Tulip;
import nl.amsterdam.simulation.model.Canal;
import nl.amsterdam.simulation.model.Prostitute;
import nl.amsterdam.simulation.model.StonedTourist;
import nl.amsterdam.simulation.model.BuisnessMan;
import nl.amsterdam.simulation.model.Windmill;
import nl.amsterdam.simulation.model.CoffeeShop;
import nl.amsterdam.simulation.model.SkinnyBuilding;
...
Or is there only a difference in the time it takes to compile, not the time it takes to execute?
Quiz Or Quiz Template Help For The Clueless?
Hi all. I just wanted to make a simple quiz in flash and then take that quiz and throw it in with some other older flash samples I made. I'm losing my mind as my "handle" for this forum implies
I tried following the help section for the flash quiz template, but I got even more confused! The help/tutorial talks about using a randomizer and I couldn't find the randomizer for the life of me!!
Is there anyone out there that can help me? Maybe you have a script for a basic quiz I can use, or you can send me somewhere online that will help me out. I looked at Atomic Learning's site, but they didn't say if they have tutorials for making a quiz. I have the paperback, "Teach yourself Flash MX in 24 hours" and when I got to page 310, Task: Make a simple draggable object, #2 I had no %$!! clue as to where I was supposed to find "the button instance and open the Actions panel" let alone the "plus button, actions, movie clip control, startDrag".
Can/Will someone please, please, please help me? If I need to be talked/through over the phone or IM, I'll pay for your tutoring services. I'm in northern cali.
Also need to know how the heck to throw the old flash movies (or files) into one big movie with the quiz. Of course, I needed it yesterday.
Thanks!
Help Quiz Template Or Other Quiz Resources?
I'm reading the macromedia tutorial on using the built in quiz template and it keeps talking about AICC and SCORM compliant learning management systems...but it doesn't say anything about using the quiz template if you are not using an LMS. Does anybody know:
1. If I can use the quiz template, generating results and all, if I am not using an LMS?
2. If not, any resources on the web that can help me build a quiz from scratch. I'm not soo good at the actionscripting, and usually rely on web resources to get me through that part of the process. Something tells me there will be a lot of AS involved in scoring a quiz.
Thanks soo much!!!!
Quiz Help
Hey hey, been searching for quiz info on the forum, and this is the only string that I've found to be similar to what I'm looking for.
Wanting to do essentially same as Glenn - show the questions the user got incorrect, but also give the user the option to go back (user would click custom graphic, etc) and review the section (not the quiz question) that contains the correct info.
Does anyone have quiz coding?
Pop Quiz ***
Why is dynamic or input text not visible when under a mask or is it just me... if not just me then how do u fix it...?
And yes the contents under the mask are visible, ony the dynamic text will not show...
Plz Help
Pop Quiz
I am putting finishing touches on my website console.
I would really really like to have a time displayed in on the stage that pulls from the person computer who is on my page.
Can someone explain how this is done?
Im a real novice so if you dont mind being detailed ID REALLY APPRECIATE IT!!!!!!! hahaha
Thanks guys!
USA Map Quiz
Hello! Can somebody help an actionscript beginner or is there a tutorial somewhere? I would like to create my own USA state quiz out of a map I´ve drawn. I want the user to drag and drop the right names on the right states, then hit a check answer button and be able to see the score and percentage of right anwers. I have looked at the learning interactions in Flash but is there another way?
Thanks for taking the time!
//Tom
Quiz
I need help. Whenever somebody takes my quiz I want it to say under the score Good Job for the high scores, and bad Job for the low scores and for the bad bad score try harder and harder. If anyone knows how to do that I would appreciate it if you told me.
Quiz
I have a quiz that loads 26 questions randomly from 26 different txt.files. The problem is that sometimes it loads the same question twice. I thought at first I had the same text-file twice with the same question, but since it is not the same question that keeps popping up 2 times I figured that could not be the problem... Has anyone any experience with this problem, or can anyone see any obvious mistakes in my codes?
Here are the codes:
//Set to go through the questions randomly
q = Number(random(26))+1;
//Going through the numbers and putting away used.
if (Number(q) == Number(used1)
or Number(q) == Number(used2)
or Number(q) == Number(used3)
or Number(q) == Number(used4)
or Number(q) == Number(used5)
or Number(q) == Number(used6)
or Number(q) == Number(used7)
or Number(q) == Number(used8)
or Number(q) == Number(used9)
or Number(q) == Number(used10)
or Number(q) == Number(used11)
or Number(q) == Number(used12)
or Number(q) == Number(used13)
or Number(q) == Number(used14)
or Number(q) == Number(used15)
or Number(q) == Number(used16)
or Number(q) == Number(used17)
or Number(q) == Number(used18)
or Number(q) == Number(used19)
or Number(q) == Number(used20)
or Number(q) == Number(used21)
or Number(q) == Number(used22)
or Number(q) == Number(used23)
or Number(q) == Number(used24)
or Number(q) == Number(used25)
or Number(q) == Number(used26))
{
gotoAndPlay(6);
} else {
set("used" add loop, q);
}
if (Number(loop) == 26) {
gotoAndPlay("end");
}
//For loading textfiles:
loadVariables("question" add q add ".txt", "_level0");
//Text in the .txt files
question=This is the question?&answera=This is the answerA&answerb=This is the answerB&answerc=This is the answerC&answerd=This is the answerD&right=c
---
I appreciate all your help.
Thank you!
QUIZ. Please Help
I am making a quiz for a flash game and here is the problem. The site has only one page for the quiz questions. And when they get a correct or wrong answer i take them to a new page saying like good job or try again. The only problem is when it goes back to the question page, the whole thing starts over with like question 1. Is there a way to get flash to remeber the last question?
please i have a deadline on this. help any way... like a link or whatever.
Help With Quiz
I'm using the quiz template that comes with MX. I'm only using the true/false components. At the end of the quiz the results page comes up with a score. Instead of this score I'd like a bad image to appear if the score is below 50% and a good image to appear if the score is higher. I'm new at scripting and need some help. Thanks
Quiz Help
Hi again
I need a tutorial which will show me how to create a quiz like the ones you can make with the quiz template in flash mx.
Except for that the answer should be selected and then be able to move on to the next without having to check the anser first.
thanks
Quiz
I am trying to make a quiz for an interactive CD. Along with this post for help I've sent the quiz experiment .fla. What it needs to do is when you drag the question to the answer 1) the answer covers the question 2) true or false appears in the results box 3) the name of the clip appears in the variable name box ....these I have right so far... 4) is what is messing up. When you click the submit button all of the answers that are wrong will snap back to their original positions and then the user will try to place them in the correct places until they get all of them right. Some parts of this quiz work and other parts don't. It would take me a long time to write out the code and my line of thinking so if anyone could please open the fla and look at what's going on I would really appreciate some help on this matter. I'm under tight deadline and I have to deliver.
Thanks
Quiz
I was wondering if anyone could help me out with some actionscript. I am trying to make a quiz where the user answers several questions and then at the end the click a button and it tells them there score and a quote saying there level of knowledge. What I have so far is when the user clicks [yes], 2 points are added to an ivisible text box, when the user clicks [no], 1 point is added. At the end the amount of points is taken from all the questions. I want to have a quote for getting a certain amount right. Could anyone help me with this? Thanks a million
Quiz
hi flashers -
i've been looking around on the site for examples/tutorials of a quiz game, for example, a question comes up, and you can choose from 3 answers, when you click on the correct one, or wrong one, it makes the appropriate noise and moves you to the next question.
i haven't been able to find really any examples - can someone point me in the right direction?
thanks.
My Little Quiz ...
Hello everyone...
I'm such a newbie that asking the right question is already tough...sorry about that.
I have a .fla that loads an external .txt in which there are several vars
"k" and "s" I have like k0= k1= etc.. and s0= s1= ....
I have 5 dynamic text boxes named "dk" (display k) and in front of each of them
I have buttons with action
on (release) {
choice == 1; //for the 1st text box
}
I also have 1 other dynamic text box "ds" (display s)
I am loading the text and I put the vars into 2 arrays.
This works, thanks to all I've learnt on this forum.
What I want to do is something like :
//create arrays
//select a random "s" Vars
//display "s" in ds
//remove the Vars "s" so it can't be pick up again
//select the Vars "k" corresponding to the "s" selected (if s3 comes out, pick up k3)
//display "k" in a random text box "dk" among the 5 possible
//display some other random "k" Vars in the remaining text boxes
So far I have this :
// get all the variables into a couple of arrays (assuming their is the same number of each m and r variables)
myArray = new Array();
myArray2 = new Array();
i = 0;
while (this["s" + i] != undefined) {
myArray[i] = this["k" + i];
myArray2[i] = this["s" + i];
++i;
}
i = 0;
while (myArray.length > 0) {
index = Math.floor(Math.random() * myArray.length);
this["dk" + i] = myArray[index];
this.ds = myArray2[index];
myArray.splice(index, 1);
myArray2.splice(index, 1);
++i;
}
But sometimes the Vars "s" that show up is not in the "k" that are picked up.
(For example if I have "s3" I can have "k2" k6" "k1" "k7" "k8" but no "k3")
Finaly I have a "submit" button (that control a MC "answer") with the Action
on (release) {
if (choice == this.s) {
answer.gotoAndPlay(2);
} else {
answer.gotoAndPlay(3);
}
}
but it doesn't work....
Thank for any Help !
A Quiz
Hello one and all.
I need some help with a couple of things I suppose.
Firstly I want to make a quiz. The kind that is a page of text with words missing.
At the bottom of the window I want to put all the missing words so the user can drag them into the spaces to give their answers.
So basically I need to know how to snap an answer into place (but also make it moveable again should the user change their mind) and record whether that answer is true or not to give a final score.
Has anyone else attempted this?
(he says hoping he has explained what he is going on about adequately)
Thanks
Quiz
Hi all, has anybody a tip, where can i found some information about quiz? Some template would be good.
I know the templates from Flash MX.
I would like tu see some another examples.
Thanks Jan
Quiz
Hello everybody,
I really want to create an interactive Multiple choice quiz in flash.
Has anybody got any ideas or addresses for tutorials so I can achieve this?
thankyou
Quiz Help
I am making a quiz in which my students are given a question and they answer by selecting one of several buttons. So far so good. My trouble is the feedbace I am attempting to give them for the correct or incorrect answer . I created a movie clip of a car that will move towards a finish line based on the selection of the correct answer. When the student selects the correct button the car goes to the particular frame of the car mc.
The problem I am having is if they select an incorrect answer I would like the car to actually go back to the previous point.
When you have multiple answers (say) a correct answer and an incorrect answer and multiple questions (say)10, what is the best way to set up the "car" movieclip to perform the appropriate action.
Thanks for the help and I welcome any samples anyone can guide me to.
Burleson
Quiz Help
Help!!!
I have attached 2 SWF files. Seperately they work fine. However, I want the slideshow.swf to open the quiz.swf and it doesn't seem to work correctly. Yes the button on the slideshow.swf opens the quiz.swf, but all the background stuff is gone and it doesn't work beyond question #6. I can send anybody the *.fla file I just need help fixing this. Any help would be greatly appreciated.
Mary
Quiz Help
If I was to create a quiz within a flash site, say a multiple choice quiz with the viewer having to input the answer, how would I go about this
|