Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] Levels
From: Muzak
Date: Fri, 23 Mar 2001 03:36:43 -0000

Q: When you load a movie or movieclip into a level does it overtake the whole
level and boot everything else out? Sometimes it seems to eg. loading a
.swf into a level, but sometimes it doesn't when you duplicate movies and
set them to go into incrementing levels with a for loop, they don't seem to
effect the other movies, even though they will be on the same levels.

A: See Andy's post on this one, there's a difference between 'movie levels' and 'movieclip depths'
-----------------------------------------------------------------------
Q: what is the relationship between timelines and levels. _level0 has a
timeline. is that the only level that has it's own timeline?

A: Every movie loaded in a main movie has it's own timeline and so do movieclips. Since you made the comparisson with a directory
structure, maybe this will make it easier. You could see levels as different root folders next to each other and movieclips are
folders within those roots.
-----------------------------------------------------------------------
Q: What is the relationship between layers and levels? If I load a movie into
an object which is on a a middle layer of Level0 it seems to come in at that
layer

A: That is correct, when you load a movie into a target MC, it actually becomes that MC, so you no longer have a level movie, but a
'new Movieclip'. To *talk* to that loaded movie, you use the instance name of the MovieClip it is loaded in, not the usual 'level
number'.
By loading a movie into a MC, it becomes part of the timeline (level) the MC is in. A movie loaded into a MC is more flexible as it
is easier to move around, change it properties (_x, _y, _alpha, etc...).
-----------------------------------------------------------------------
Q: What is the relationship between levels and the levels of an imported movie?
If I import a movie into level 0, which dupes movies into various levels, or
pulls in another movie does it end up putting those objects on the top set
of levels or is there a sort of subset of levels like
_level2._level4.object.

A: Again, see Andy's post on levels and depths. There is no such things as _level2._level4
-----------------------------------------------------------------------
Q: is _root the same as level0. If I import a movie its root becomes the top
timeline of the mother movie.

A: No, each level movie has it's own _root. So, using _root in the main movie (_level0) refers to that main timeline, while _root in
a level1 movie refers to that main timeline. Note that when a movie is loaded into a MC, _root becomes the main timeline of the
level the MC is in.
Let's say you have a movieclip (MC1) with this action:

_root.myVar=1

When played by itself, the variable myVar will be in the main timeline (_level0.myVar=1)
If you load this movie into another level (let's say level1), the variable myVar will live in the root of level1 (_level1.myVar=1)
When loaded into a MC (which is in the main movie), the variable myVar will live in the root of the MC (_level0.myVar=1)
-----------------------------------------------------------------------
HTH,
Muzak






[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]