var dragItem = false; this.onRollOver = function(){ dragItem = true; trace(dragItem); } this.onPress = function(){ if (dragItem = true){ startDrag(this); } } this.onRelease = function(){ stopDrag(); }