Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Quiz Game Variable... |
From: | mhoganuclick [dot] com |
Date: | Thu, 6 Apr 2000 18:56:49 +0100 |
I too am working on a quiz game. Flash will load all of the variables at
once from the text file, so set up a target clip called variables or
something like that. Naming conventions become very important here. When the
variables are loaded, simply have one or more text fields (depending on your
number of questions at a given time i.e. a. b. c. then do an eval statement
between your text field variable and the question like: Eval ("a" &
"question1") this will return the value of question1 into your text field.
If you want to generate the questions randomly, it gets a little more hairy.
You have to emulate an array and then chose from the array randomly such as
Set variable "randomquestion" = Eval ("question" & Random(#of questions)
flash will then run through your list and pick a question. you then set the
text field variable to equal the random variable such as
Set variable "questions" = "randomquestion" I know this is long winded, but
I hope not too confusing.
Mel
"i'm a designer, not a programmer, dammit"
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Quiz Game Variable..., Doug Ross
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]