API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class DraggableSprite

Package | org.openscales.core.basetypes
Class | public class DraggableSprite
Inheritance | DraggableSprite flash.display.Sprite

DraggableSprite inherits from Sprite. It adds specific methods to be able to drag it from mouse events (Down, Move, Up). It was created to be able to drag several sprites at same time on the contrary of native dragging methods of Sprite.

Public Properties

| Property | Defined by
--- | --- | ---
|  | dragging : Boolean [read-only] | DraggableSprite

Public Methods

| Method | Defined by
--- | --- | ---
|  | DraggableSprite() | DraggableSprite
|  | startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void | DraggableSprite
|  | stopDrag():void | DraggableSprite

Property detail

dragging | property

`dragging:Boolean` [read-only]Implementation
`public function get dragging():Boolean`
Constructor detail

DraggableSprite | () | constructor

`public function DraggableSprite()`
Method detail

startDrag | () | method

`public override function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void` Parameters

| `lockCenter:Boolean` (default = `false`)``
| `bounds:Rectangle` (default = `null`)``

stopDrag | () | method |

`public override function stopDrag():void`