5 Replies Latest reply on Nov 20, 2007 7:37 AM by niki tsanov

    understanding layers and levels

      Hi guys, need some help


      Here is a link to a website im working on. Its in its very early stages (as such there are no pre-loaders or anything...yet).

      Anyway, you will see the "main swf" which is the clouds, the company logo and the navigation.

      When you click on the navigation links (they dont all work yet), it links to an external swf file that plays it in the centre of the main swf.

      This is the action script code on each of the navigation buttons to bring up the external swf files....

      on(press) {

      mc._x = 180;
      mc._y = 40;

      (this is the action script code for the ABOUT button).

      If you click on the INTERACTIVE FLOOR PLANS button you will see the same external swf but its not centered, its set to appear in the top left hand corder of the main movie.

      Now here is my problem....

      On the main movie, the clouds and the company logo are on seperate layers.
      What I want is for the extranal movie (ie the text on the ABOUT US part) to appear UNDERNEATH the company logo (but obviously still on top of all the clouds).... how do I do that?

      Currently all the extranal swf files appear on top of everything else.

        • 1. Re: understanding layers and levels
          niki tsanov
          So for your problem with the logo you can use behavios control.Just put this action on the frame where are the logo and clouths
          mx.behaviors.DepthControl.bringToFront(mc_clouds) also u can check into
          C:\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\Behaviors\BehaviorsScrapbook :)
          For the centered just define only one movieclip for exm. loadItem_mc and after user press some button the external movieclip load into loaditem_mc with in advanced _x and _y pos. :)
          • 2. Re: understanding layers and levels
            Fletch2007 Level 1
            ummm....that works initially, but then when I click on one of the navigation buttons, the whole logo disapears when another movie comes into..
            • 3. Re: understanding layers and levels
              niki tsanov Level 1
              mhm...okey when you put mx.behaviors.DepthControl on the action frame the logo goes under the clouths and everything is okey but when you click and the new movie load into stage the logo goes invisible ? look your instans if they are the same or something ... because this is very strange
              • 4. Re: understanding layers and levels
                Fletch2007 Level 1
                the logo and clouds are seperate layers.

                The cloudes need to go on the BOTTOM of everything.
                The logo on the TOP of everything.

                The movie clips (ie the bits with text) need to go somewhere in the middle (so above the clouds but below the logo).

                Yes ive checked the instances... initially the logo was just a jpeg, but I made it into a movie clip and matched the instance with the MX behaviour.
                • 5. Re: understanding layers and levels
                  niki tsanov Level 1
                  Try to put Cloud layer in bottom after put Logo layer over the cloth layer.Make some function to control easy depthControl something like this one
                  function detphControl(mc:MovieClip){
                  and add function call in action in buttons this function for exm. if you press About us the About movieclip going on the top after that is the logo after logo is clouds make logo Front of everything with the function.
                  When movie load. function depthControl(logo_mc) if press About us depthControl(logo_mc) again