3 Replies Latest reply on Jul 14, 2006 3:12 PM by Rothrock

    Crazy levels, assistance please.

    Zylozeer
      Ok I have a menu component on _level0 i'm feeding with an xml file. Depending on what is chosen it may load a swf on _level1. I've tried swapDepths and other things and just can not get the menu component on _level0 to appear over the swf movie on _level1.

      Any ideas or is this not possible without putting the menu component in its own swf and loading it on _level2?

      Thanks in advance!
      -Z
        • 1. Re: Crazy levels, assistance please.
          Rothrock Level 5
          swapDepths should work, but probably not as you used it. In general the lowest thing in level1 will always be above even the highest thing in level0. And in general the purpose of levels is to help you organize and structure your project. Personally I don't like layers and find they don't fit in with what I consider to be the core paradigm for Flash: the movieclip. But that is neither here nor there, i guess!

          You should be able to change the stacking order of layers like this:

          _level1.swapDepths(_level0);

          • 2. Crazy levels, assistance please.
            Zylozeer Level 1
            Well I'm wanting to leave everything on _level0 where it is underneath _level1 except the drop down menus of the menu bar component on _level0. When I swapped all of 0 with 1 it was ... visually fudged. :P

            So the core question i guess is can a component on a level be raised by itself above another level?

            In code speak...
            //_level0 loaded with menu_bar movieClip on it.
            loadMovie("something.swf", 1);
            // menu_bar.swapDepths(3); ????? this doesnt' work so i'm guessing each level has its own levels?
            • 3. Re: Crazy levels, assistance please.
              Rothrock Level 5
              That is pretty much it. Each level is its own thing and can only be swapped as a whole. (Most folks, including some expert folks, are quite surprised that you can even do that!)