Package | com.nocircleno.graffiti.events |
Class | public class CanvasEvent |
Inheritance | CanvasEvent ![]() |
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 10 - AIR 1.5 |
Property | Defined By | ||
---|---|---|---|
canvasHeight : uint [read-only]
Canvas Height
| CanvasEvent | ||
canvasWidth : uint [read-only]
Canvas Width. | CanvasEvent | ||
viewableRect : Rectangle [read-only]
Viewable Rectangle of the Canvas. | CanvasEvent | ||
zoom : Number [read-only]
Canvas Zoom value. | CanvasEvent |
Method | Defined By | ||
---|---|---|---|
CanvasEvent(type:String, zoom:Number, canvasWidth:uint, canvasHeight:uint, viewableRect:Rectangle, bubbles:Boolean = false, cancelable:Boolean = false)
The CanvasEvent constructor. | CanvasEvent |
Constant | Defined By | ||
---|---|---|---|
DRAG : String = drag [static]
Dispatched when the canvas position is changed. | CanvasEvent | ||
ZOOM : String = zoom [static]
Dispatched when the canvas zoom value changes. | CanvasEvent |
canvasHeight | property |
canvasHeight:uint
[read-only] Canvas Height
public function get canvasHeight():uint
canvasWidth | property |
canvasWidth:uint
[read-only] Canvas Width.
public function get canvasWidth():uint
viewableRect | property |
viewableRect:Rectangle
[read-only] Viewable Rectangle of the Canvas.
public function get viewableRect():Rectangle
zoom | property |
zoom:Number
[read-only] Canvas Zoom value.
public function get zoom():Number
CanvasEvent | () | Constructor |
public function CanvasEvent(type:String, zoom:Number, canvasWidth:uint, canvasHeight:uint, viewableRect:Rectangle, bubbles:Boolean = false, cancelable:Boolean = false)
The CanvasEvent
constructor.
type:String — Type of Canvas Event.
| |
zoom:Number — Zoom of the Canvas instance that dispatched the event.
| |
canvasWidth:uint — Width of the Canvas instance that dispatched the event.
| |
canvasHeight:uint — Height of the Canvas instance that dispatched the event.
| |
viewableRect:Rectangle — Viewable Rectangle of the Canvas instance that dispatched the event.
| |
bubbles:Boolean (default = false ) — Does the event bubble.
| |
cancelable:Boolean (default = false ) — Is the Event cancelable.
|
DRAG | Constant |
public static const DRAG:String = drag
Dispatched when the canvas position is changed.
ZOOM | Constant |
public static const ZOOM:String = zoom
Dispatched when the canvas zoom value changes.