What is a level ?

  1. levels are like different layered flashplayers with _level0 at the bottom.
  2. The main movie is always started in _level0 You can load movies to different levels with loadMovieNum, eg loading to level 5 loadMovieNum("movie.swf", 5)
  3. You can swap the level of your Movie with the swapDepth Command to change the layering of your movies, eg. swapping level 5 with level 7 _level5.swapDepth(_level7)
  4. _root gives you the actual _level of your movie from inside your movie. So you can address your main timeline without knowing on which level it is, eg. going to frame 45 of actual level _root.gotoAndPlay(45)
  5. If you need to control a given level you can use _levelX instead of _root, eg. controling the timeline of level 5: _level5.gotoAndPlay(13)
  6. An instantiated level (a level with something in it) has the same properties and methods as your main movie or any movieclip (see documentation of the movieclip object), eg. position of a level 5 _level5._x = 23; _level5._y = 56;
    raf Date: 27/12/2001
    u can alias ur level too, its better if u need change ur level hierarchy : navigation = _level5; then u can use : navigation.gotoAndPlay("next"); it the same as _level5.gotoAndPlay("next")
    maduro Date: 16/08/2002
    what happens if you want to preload all the swf's in the beginng? Like one on each level...? Can u do that? I have tried and it lays one on top of the other..
    chiu Date: 22/01/2003
    maduro, in answer to your question use a level0 swf as a base for loading your front swf (the one you want everyone to see first), say at level10, and then preload everything under level10...
    Ken Date: 13/02/2003
    "You can swap the level of your Movie with the swapDepth Command to change the layering of your movies, eg. swapping level 5 with level 7 _level5.swapDepth(_level7)" This does not work on movies (SWFs), only on movieclips. (At least not in MX... Just FYI, Ken
    Add comment
    Home