Start Drag

Use this action when you want to start dragging a sprite with the mouse. To stop dragging, use the Stop Drag action. Usually put this in a Press event.

panels-action-startdrag.png  

Locked
When locked, the centre of the sprite follows the mouse, otherwise the sprite will simply follow the mouse movement

Constrained
When constrained, the sprite stays withint the specified rectangle

Constrain to rectangle
The rectangle within which the sprite is constrained

In the example below, the sprite will start dragging when you press the mouse button on it.

panels-action-startdrag-example.png  

Note: If you put the Press or Release event on the sprite itself, it will be exported as a button an no longer work as a sprite. Also the dragging actions will then apply to the sprite or movie that contains the sprite (rather than the sprite itself). Instead, put the mouse events on a button or object inside the sprite.


[Previous] [Main] [Next]