How can I replace this code to use dot syntax instead of slash?
square.origX = _x;
square.origY = _y;
square.onPress = function() {
this.startDrag();
};
square.onRelease = function() {
stopDrag();
if (square._droptarget != "/ball") {
this._x = this.origX;
this._y = this.origY;
}
};
Thanks.