1 Reply Latest reply on Mar 27, 2008 2:51 PM by Fuentes866

    Draggable MovieClip doen't work

    Fuentes866
      Hi,

      Why this piece of code doen't work ?

      this.createEmptyMovieClip("mcContent",10);
      mcContent.beginFill(0x006666,100)
      mcContent.lineStyle(2,0xFF0000,100);
      mcContent.moveTo(0,0);
      mcContent.lineTo(100,0);
      mcContent.lineTo(50,100);
      mcContent.lineTo(0,0);
      mcContent.endFill();

      mcContent.onPress = function() {
      this.startDrag();
      }

      mcContent.onRelease = function() {
      this.stopDrag();
      }

      The triangle doesn't remain draggable. Why ???