A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: What is a timeline?

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    289

    What is a timeline?

    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.

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    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.

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Posts
    289
    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.

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Yes, more or less.

    You are confuding timelines with Levels.

    Don't use _level0 unless you want to start and stop the main level.

  5. #5
    Senior Member
    Join Date
    Jun 2001
    Posts
    289
    lol. Situation normal - I live in a state of confusion.

    Thanks for the help, Johnie. Appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center