2 Replies Latest reply on Sep 18, 2012 7:21 AM by residentevil750

    Movieclip on top of duplicated movieclip

    residentevil750

      I am working on a shooter game. The AS below allows me to duplicate bullet holes when you shoot at objects:

       

      bulletHit_mc.onPress=function(){

      i++;
      _root.bullet.duplicateMovieClip("bulletNew"+i, i);
      }

       

      It works great but I have invisible movie clips that I want to appear (_visible=true;) over the duplicated MC bullet holes. So far they only show up behind the duplicated ones. Even with

       

      myButton.onPress=function(){

      myMC._visible=true;

      myMC.gotoAndPlay(2);

      myMC.swapDepths ( this._parent.getNextHighestDepth( ) );

      }

       

      //myMC is the movieclip to show on top of created duplicated movieclips

       

      Can someone tell me what’s going on and hopefully an easy fix?

      Thanks!