3 Replies Latest reply on Oct 12, 2010 9:19 AM by kglad

    swapDepths

    Ron Colmen Level 2

      How do I set the swapDepth for my UI ScrollBar? (the scrollbar show-up when some external text is being loaded).

       

      Or how do I make 'abc' right on top of all other items?

       

       

      Button.prototype.swapDepths=MovieClip.prototype.swapDepths;

      var abc:TextField

      var newDepth = 1; .

      var swapMovie_mc:MovieClip = abc._parent.createEmptyMovieClip("swapMovie_mc", newDepth);

      swapMovie_mc.swapDepths(abc.getDepth());

      _root.menubr_mc.swapDepths(2);