When I use this code to drag an object behind a mask object it works fine. But the onrelease isn't triggered when I release the object outside the mask object. Why is that and how do I solve this?
Code:circle.setMask(square); this.onEnterFrame = function() { circle.onPress = function() { circle.startDrag(); }; circle.onRelease = onReleaseOutside=function () { circle.stopDrag(); }; };