Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Flash: Levels |
| From: | Marc Hoffman |
| Date: | Mon, 1 Mar 1999 18:36:19 GMT |
At 09:12 AM 3/1/99 +0100, you wrote:
>Can someone please explain to me the concept of levels?
The flash player can play more than one movie (swf) simultaneously. You
can take advantage of this via Load Movie, which allows one movie to load
additional movies on what are referred to as levels. You can have hundreds
of levels and they need not be assigned consecutively.
The main movie is on level0. It establishes the frame rate and background
color and stage size for all other movies.
The other movies must be created as .swf's, not movie clips. A movie loaded
on a "higher" level will align with the upper left corner of the level0
movie, so usually you will want to make all movies the same stage size,
even if the content is restricted to a portion of the stage.
Once they have loaded, you can use TellTarget between any movies to make
the other movies stop or go to labeled frames. Be sure to get into the
habit of labeling frames rather than using scenes, it will make life a lot
easier.
When using TellTarget among levels, the target must be specified as: _levelx
where "x" is the number of the level. Don't forget the underscore_
(Macromedia forgot it in the manual).
Unloading level0 will unload everything. Loading a new swf into level0
will unload everything.
If your movies have park frames (frames that are labeled, have a stop
action, and contain no graphics) you will be able to TellTarget them to go
to those frames, making them invisible. You can also unload movies, but
this is not necessary if you park them.
Graphics in movies on higher levels will obscure graphics in the same stage
position in movies on lower levels.
Load Movie is a good alternative to movie clips when you have a great deal
of content that is called by the user in unpredictable order.
Movie clips within a single movie have the advantage of sharing a library.
Movies on separate levels do not share a library, but if you are clever you
can cut down on redundancy of symbols by making the different movies go to
the place where they show whatever is needed. For example, you might have a
display of a meadow in level0 and a butterfly animation in level1, and call
the butterfly to fly over the meadow whenever you wish.
One of my uses of Load Movie is to put all sounds in labeled frames in a
separate .swf. That way, my animations can be playing along without
waiting for sound to load, and whenever the sound movie is loaded the
sounds will become active.
Marc Hoffman
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
marc
My home site is now featured in Ken Milburn's book, Flash 3 Web Animation f/x
and Design. Play a virtual marimba there: <www.dartfrogmedia.com/dartfrog>.
View my Flash3 samples: <http://www.jps.net/dartfrog/sampler>.
Read about Flash: <http://www.jps.net/dartfrog/sampler/flashinf>
------------------------------------------------------------------------
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
Re: FLASH: Flash: Levels, Jayma
Replies
FLASH: Flash: Levels, Tom Hayes
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

