All right- silentweed helped me with this and here is the answer to my above question:
aItem[i].instance.onPress = function() {
this.swapDepths(_root.getNextHighestDepth());
this.origX = this._x;
this.origY = this._y;
this.startDrag();
};
And replace the following
aItem[i].instance.onRelease = function() {
this.stopDrag();
if (checkDropLocation(this)) {
//it has been added to basket so increase quantity in basket
aItem[this.id].quantity++;
//update datagrid
updateDatagrid();
//also send it back to its original position and fade it in
this._alpha = 0;
reposition(this);
fadeIn(this);
//let user know it has been added to basket
} else {
//not in basket so send it back to its original position
reposition(this);
}
};
aItem[i].instance.onReleaseOutside = aItem[i].instance.onRelease;
with
aItem[i].instance.onRelease = function() {
//it has been added to basket so increase quantity in basket
aItem[this.id].quantity++;
//update datagrid
updateDatagrid();
};
