1 Reply Latest reply on Jun 21, 2010 4:20 AM by Petro O. Bochan

    Problem with creating two movieclips

    Bola.orginal Level 1

      Hi,

       

      I'm trying to create two movieclips and two textfeilds with AS. The movie clip are also draggable. So here's my code:

       


      this.createEmptyMovieClip("text1_mc",1);

      _root.text1_mc.createTextField("text1",1,0,0,100,100);

      _root.text1_mc.text1.text="A";

      text1_mc.onPress = function(){
              startDrag(this);
      }
      text1_mc.onRelease = function(){
          stopDrag();
      }


      this.createEmptyMovieClip("text2_mc",1);

      _root.text2_mc.createTextField("text2",2,0,0,100,100);

      _root.text2_mc.text2.text="B";

      text2_mc.onPress = function(){
              startDrag(this);
      }
      text2_mc.onRelease = function(){
          stopDrag();
      }

      But it only show the last created move clip and text (text2) So why dosen't it not show us both A and B?

      .