I have to make an educational Flash movie as part of my MA -
however I only picked up Flash about a month ago and still find
ActionScript very difficult. I want to know if this is possible and
maybe get a pointer as to how to do it.
Basically I want a thermometer to indicate the rate of
frustration of a waiter in a restaurant simulation. Annoy him too
much by choosing the wrong answer (i.e. wrong language) and it goes
up. Answer politely, it goes down. Hit the top of the thermometer
and his head blows up (or he walks off or something). Get to the
end without annoying the waiter to this extent and you are rewarded
with your meal.
I have a thermometer, it's a movie clip with five frames
showing five states, 0=low (calm), 4=high (head blow off time). The
user starts off on 0. I presume I would need a variable: vexscore =
In the first set of user options, when the user clicks A
(very wrong) the thermometer would go up 2 steps. If it's B then up
1, so vexscore = 2 or 1
I'm sure this bit is possible (although would I need a
graphic and not a MC as I can't see how I can link to individual
frames of the movie clip to show the graphical increase).
Then on the next user choice, the thermometer starts where it
left off. This is the bit that is stumping me. I've seen _root to
keep something going through the whole movie. Would it be something
This time, a correct answer reduces the thermometer, wrong
raises it etc etc
What I want to know is, is this possible? If yes, and I
presume it is, could someone give me a pointer?
ok - you certainly can do this. a simple way to do what you
want here is add and subtract from the 'score' var - then using
that number to send the playhead of the thermometer to the frame
related to that score, using:
then you would use a 'conditional statement' to check to see
if the current score is 'highest' or 'lowest' and initiate the
so each time a 'answer' is chosen, you would use the event
handler of the button instance to increase or decrease the score
var then call the condition to check it.