0 Replies Latest reply on Jan 4, 2007 8:05 AM by ecoolen

    Trouble with droptarget

    ecoolen


      This is from the Flash 8 Doc on dragging MovieClips
      It doesn’t work because it’s suppose to be in a onClipEvent
      Why isn’t the Doc updated I find this a lot in Move Clip examples

      garbage_mc.onPress = function() {
      this.startDrag(false);
      };

      garbage_mc.onRelease = function() {
      this.stopDrag();

      if (eval(this._droptarget) == trashcan_mc) {
      garbage_mc._visible = false;
      }
      };


      This is the same thing in onClipEvent it doesn’t work
      The eval droptarget isn’t working


      onClipEvent (mouseDown) {
      this.startDrag(false);
      }

      onClipEvent (mouseUp) {
      this.stopDrag();
      if ( eval(this._droptarget) == trashcan_mc) {
      garbage_mc._visible = false;
      }
      }


      This is from an example I found on this Forum the eval drop target won’t work either

      on (press) {
      startDrag("");
      }
      on (release) {
      stopDrag();

      if(eval(this._droptarget) == _root.Fire2_mc){
      Fire2_mc._visible = false;
      }
      }

      Help I know it has to be me but I can't see why it won't work or why the Doc examples are wrong I have done this in previous versions of Flash using the first example from the Doc