2 Replies Latest reply on Jul 6, 2006 12:54 PM by yarkehsiow

    DEPTHS:

    yarkehsiow Level 1
      Hello,
      i have a textField that must be placed on the stage at authoring time (i think, due to instance name issues), and a rectangle created dynamically.
      the textField must be on TOP of the rectangle... but its below.
      is it possible to tell the textbox to go to a higher depth than the rectangle?
      Thank You.
        • 1. Re:
          Level 7
          yarkehsiow,

          > i have a textField that must be placed on the stage at
          > authoring time (i think, due to instance name issues),

          Okay.

          > and a rectangle created dynamically.

          If this rectangle is created dynamically, then I presume it is a movie
          clip?

          > the textField must be on TOP of the rectangle... but
          > its below. is it possible to tell the textbox to go to a
          > higher depth than the rectangle?

          It is. You may use the MovieClip.swapDepths() method to accomplish your
          needs. But you'll have to wrap that text field in a movie clip first. To
          see *all* the features available to a movie clip, look up the "MovieClip
          class" entry of the ActionScript 2.0 Language Reference. Classes define
          objects, and just about everything in ActionScript -- including movie clips,
          text fields, buttons, and more -- is an object. You'll find properties,
          which are the characteristics an object has; methods, which are the things
          it can do; and events, which are the things it can react to.


          David
          stiller (at) quip (dot) net
          Dev essays: http://www.quip.net/blog/
          "Luck is the residue of good design."


          • 2. Re:
            yarkehsiow Level 1
            David,
            thank you very much for your very clear answer!
            it worked.
            Ray