5 Replies Latest reply on Aug 17, 2008 1:16 PM by kglad

    getNextHighestDepth not really working

    juanDerLust
      I have a flash movie with some buttons that load swf's into the movie. Here is the code I have attached to the buttons:

      on(press){
      var container:MovieClip = this.createEmptyMovieClip("weddingClip", this.getNextHighestDepth());
      weddingClip.loadMovie("wedding.swf");
      }

      This actually works fine the first time. The problem is that if I press button 1 and it loads the appropriate swf, then I press button 2 and it loads it's appropriate swf, if I decide to go back to 1, it won't come up because it is loaded below #2. I would think it would still come up in depth.

      Here is the link to the site for demonstration purposes:

      test site

      Any ideas?