Click to See Complete Forum and Search --> : What is a timeline?
OwenAus
11-10-2002, 09:50 PM
I hear that _root and _level0 are not the same thing, and that _level0 refers to the base timeline, whereas _root is, erm, base timeline of a currently executing script.
So, in KM terminology, what is a timeline?
Thanks. :)
johnie
11-10-2002, 11:14 PM
Its the same as it is in Flash. The terminolgy is exactly the same.
_root can be used for the base timeline from any child movie. _Level0 refers to the base level. _root and _level 0 as far as controling the main timline on level0 can be used almost interchangably asuming you have 1 level ie; _level0.stop() and _root.stop() have the exact same effect however for other things they can not be interchanged. If you have 2 levels _root on level 0 will be the main timeline on level 0 while _root in level 1 will be the main timeline on level 1.
Outside of _root and _level# there is this and _parent. These are used for targeting actions. this refers to the timeline you are currently on while _parent is one up. If you are never going to load your movie into another SWF or place it in another go ahead and use _root to as a reference if however you are going to load it into another at one time or another use this and _parent.
OwenAus
11-10-2002, 11:56 PM
Heya, Johnie. Thanks for that.
So a new timeline is created if you load in a swf, that becomes the next (_level1) timeline?
If you create a movieclip internally, via KM or AS, and not through loading a swf, it is associated _level0?
Thanks again. :)
johnie
11-11-2002, 09:52 PM
Yes, more or less.
You are confuding timelines with Levels.
Don't use _level0 unless you want to start and stop the main level.
OwenAus
11-11-2002, 10:05 PM
lol. Situation normal - I live in a state of confusion. :D
Thanks for the help, Johnie. Appreciated.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.