10 Replies Latest reply on Jun 20, 2007 9:38 PM by kglad

    attaching movie clip above others, depths, why can't I get this?

    complexity Level 1
      Hi all,

      I have 4 movies all sitting in seperate layers inside the movieclip.
      _root.map.mac_mc_state

      Now I am using those 4 movieclips as buttons and are attaching a movieclip (as like a hover movie) by placing the following actionscript on each of the movie clips (not inside)

      on (rollOver){
      this.attachMovie("clickhere", "clickhere_mc", 0, {_x:_xmouse, _y:_ymouse});
      //clickhere_mc.swapDepths(1048575);
      //clickhere_mc.getDepth()
      //trace(clickhere_mc);
      }

      onClipEvent (enterFrame) {
      this.clickhere_mc._x = _xmouse ;
      this.clickhere_mc._y = _ymouse ;

      }

      on (rollOut){
      clickhere_mc.removeMovieClip();
      }

      but what ever I do I cannot not get the attached movie clip to sit above any of the 4 movieclips that are already on stage!
      I am missing something here, have tried to get the depth and swap it to a higher depth.

      My trace returns: _level0.map.map_mc.state.clickhere_mc

      Any help would be much appreciated.