Someone
public text v1 · immutablevar dragItem = false;
this.onRollOver = function(){
dragItem = true;
trace(dragItem);
}
this.onPress = function(){
if (dragItem = true){
startDrag(this);
}
}
this.onRelease = function(){
stopDrag();
}var dragItem = false;
this.onRollOver = function(){
dragItem = true;
trace(dragItem);
}
this.onPress = function(){
if (dragItem = true){
startDrag(this);
}
}
this.onRelease = function(){
stopDrag();
}