2 Replies Latest reply on May 21, 2007 6:22 PM by jjminjj

    Darg mouse /movie clip

    jjminjj Level 1
      i creat a new movie clip .i use loop for display movie clip.it's name numberofnode = 3 and i want to drag it when use loop.

      var numberofnodes = 3;
      for (i=1; i<=numberofnodes; i++) {
      this.createEmptyMovieClip("node"+i, i);
      var node = eval("node"+i);
      node.beginFill(0xFD0B0B);
      node.moveTo(20,30);
      node.lineTo(50,60);
      node.lineTo(20,60);
      node.endFill();
      node._x = 200;
      node._y = 100;


      node.onPress = function() {
      startDrag("node"+i);
      }
      node.onRelease = function() {
      stopDrag();
      }
      trace(node);
      }
      ---------
      output
      _level0.node1
      _level0.node2
      _level0.node3

      i want to drag 3 node to move any whrer.but i can not do it,please help me