Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
111Activity
0 of .
Results for:
No results containing your search query
P. 1
Build a Quiz in AS3

Build a Quiz in AS3

Ratings:

5.0

(1)
|Views: 18,810 |Likes:
Published by em
This detailed tutorial shows you how to build a short quiz in flash AS3 from the ground up. This is a great project if you are starting out in flash and you want to learn in a hands-on way. Includes a section on reading data from xml or arrays. Suitable for e-learning specialists.
This detailed tutorial shows you how to build a short quiz in flash AS3 from the ground up. This is a great project if you are starting out in flash and you want to learn in a hands-on way. Includes a section on reading data from xml or arrays. Suitable for e-learning specialists.

More info:

Published by: em on Jul 09, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/08/2013

pdf

text

original

 
 
Tutorial on building aninteractive quiz in FlashActionscript 3
flashbynight.com 
 
 What you will learn:
 
how to build a quiz using Flash AS3
 
using randomization techniques
 
storing data in arrays
 
storing data in xml (optional)
Prerequisites:
 
working copy of Flash version 8 or above
 
working knowledge of how to use the Flash interface
* You can download the completed source filesfrom here: www.flashbynight.com/tutes/quiz.htmlMaking a quiz with randomized options in AS3
So here we go. We want to make a quiz in Flash AS3 where the options are randomized.We may also want the questions to come up in a random order. What’s more, we maywant to reuse our code for further quizzes. How can we do all this? The answers are righthere in this tutorial. Read on.Step 1People have a funny habit of making tiny little Flash movies. But we want our quiz to bebig and exciting. Open up Flash and modify the stage size to 600 x 800. This way, we geta nice big stage, but it will still display on laptop screens:
 
 Fine. Save the file under the name ‘quiz.fla’ and let’s move on.Step 2We need some sample questions for the purpose of the tutorial. We should have aboutfour, I think, so here they are:Question 1: Where is Seoul?Right Answer: South KoreaWrong Answer: JapanWrong Answer: North KoreaQuestion 2: Where is Bucharest?Right Answer: RomaniaWrong Answer: HungaryWrong Answer: Poland

Activity (111)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
manindarkumar liked this
em added this note
Hi miku00 - I have another quiz which uses pictures. It's not exactly what you're looking for, but you can use ideas from both quizzes to build what you want. The quiz is here: Tutorial - Create an Animal Matching Quiz in Flash As3 If you get stuck, you can mail me at fbnmail-at-flashbynight.com (replace -at- with @)
miku00 added this note
Hi, I really like this tutorial I need something like this for a project, but I need that the answers are images instead of text, can it be done? (so for example for your question "Where is Seoul?" you use the flag of South Korea, Japan, and North Korea instead of ther names...)
Walter Rojas liked this
em added this note
Hi Kropompong - The x position of the tick and cross are set manually (step 7), so you can simply reposition them on the screen. Alternatively, if you look at the last part of the code: ButtonAction2,3,4 where we set the y position: tick.y=shade1.y etc, you can set the x position: tick.x= XXX; where XXX is the position on the screen that you want.
kr0p0mp0ng added this note
Thank you mookstar, this tutorial really help me and it works fine! :) i have a question, when I click the answer, the cross or thick button show up but a lil bit far from the answer. how can I make sure the cross or tick button just beside the answer? thank you. :)
em added this note
Hello hatersal. It should work. Did you get an error message?
hatersal added this note
Thank You so much for this tutorial! I do have a question though, how do I add more questions in the quiz? I just tried adding more questions and answers in the array part but it did not work.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->