Actionscript 3: Drag constraints
Actionscript 3: Drag constraints
Out of context: Reply #3
- Started
- Last post
- 5 Responses
- CyBrain0
Ok I got somewhere by adding a new variable to my script like you said.
var dragZone:Rectangle = new Rectangle(left, top, right, bottom);
and then changing my other line to
event.target.startDrag(false, dragZone);but the draggable area has quite a range for top and bottom.