Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: Storing info in movie clips |
| From: | John Croteau |
| Date: | Sun, 20 Sep 1998 07:46:56 +0100 |
Hi Len and all,
> > Also is there any way to get objects to move randomly in flash?
> Yes, you can set up a rotating Movie Clip and poll it to create a random
> selection of events.
One point here normally put no visuals in the actual randomizer Movie
Clip. If there is a visual associated with it use a Tell Target to a
Movie Clip to make sure the randonizer Movie Clip will run fast enough
to give you a random event. Usually you should have a randomizer setup
continuously and always some time before it is needed.
> Could you go into a bit more depth here? Specifically, how do you poll a
> clip and how would you use the result to select events?
Polling a Movie Clip would be getting info from a Movie Clip rather than
directly running an event.
Storing information in a Movie Clip to use later is the basic building
block of games and advanced effects in Flash.
Say we have 3 possible animations we want to play.
We will call them Red, Blue and Green.
We create a Movie clip with the Following:
(Actual numbers will depend on your particular animations.)
Give the Movie Clip an Instance Name such as Demo
1 Park with Stop
2 Goto and Stop Park
3 Red - Blank Keyframe with Stop
4-11 Red Animation
12 Go to and stop Park
13 Blue - Blank Keyframe with Stop
14-21 Blue Animation
22 Go to and stop Park
23 Green - Blank Keyframe with Stop
24-31 Green Animation
32 Go to and stop Park
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To Set or Store info for a Red Demo
Tell Target Demo
Go to and Stop Red
End Tell Target
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To Get or play the set animation.
Tell Target Demo
Play
End Tell Target
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Polling refers to when I store info rather than an actual visual
animation in the Movie Clip. So instead of a Red Animation I might have
a Tell Target Goto and Play RedAnimation.
This is a simple example. Usually Very complicated events can be set up
and I usually use nested Movie Clips instead of keeping action on the
same timeline.
Remember Movie Clips do not exist across Scene boundaries, so
information in a Scene will be destroyed on going to another Scene.
If you have to use Scenes use of a Load Movie can be substituted for a
Movie Clip. When using movies Loaded with Load Movie is is very
important to be sure that the Load Movie is loaded and ready before you
try to store and/or retrieve info from it.
I discourage use of Scenes except in extremely large projects with a
large number of designers and even there I suggest conversion of Scenes
to Movie Clips. In normal use use Labels in the same Scene instead of
creating a new Scene.
----------- -----------------------
John Croteau croteau
------------- -------------------------
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
FlashTeK(Advanced Websites with Flash) http://www.CrownMall.com/Flash/
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: flash and aol, veronique brossier
Replies
RE: FLASH: Mouse Cursor and point scorin, Len Harrison
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

