Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Keeping score? |
| From: | John Croteau |
| Date: | Wed, 02 Dec 1998 17:04:09 +0000 (GMT) |
Hi Wesley,
> I have made a movie clip which counts from 0 to 20, which keeps count
> in the top right. When they get a question right, I increment the
> frame so it keeps the score. However, at the end of the quiz, I want
> to make a scene dependant on the score (a rasberry for less than 5, a
> screaming crowd of adoring fans for a perfect 20 or whatever) how can
> I show this scene dependant on the score?
There is no need to use JavaScript to create an action based on another
action in Flash 3, you can use a nested Movie Clip or series of nested
Movie Clips.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Our example Score Movie Clip has an Instance name of Score:
1) You need to create a Movie Clip with an Instance Name of Finale for
each frame or series of frames that you want a distinct Action based on
the Score.
2) Each Finale Movie Clip would have 2 Frames.
Frame One would have a Stop Action.
Frame Two would have the Action(s) that you would play based on that
final Score or a GoTo Action to that Action.
3) To call the action at the end use an Action such as:
Begin Tell Target /Score/Finale
Play
End Tell Target
4) To reset the Score it is easiest to go to a frame where the Score
Movie Clip no longer exists.
5) Note each of the Finale Movie Clips will have the same Instance Name
but only one will be available at a time depending on the current score.
6) Each nested Movie Cl;ip will rest in its frame 1 position due to the
stop action in its frame 1. It will only be activated at the end of the
Quiz when you call it with a tell target to it.
We are doing a Score Tutorial on this for the Flash Bible.
Part 1 - Keeping Score - is almost done.
Part 2 - Using the score Results - will cover this netsed Movie Clip
subject.
----------- -----------------------
John Croteau croteau
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
Need a PC ? -- Computer King --
http://www.crownmall.com/computers/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
FLASH: Keeping score?, wesley
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

