Packagecom.nocircleno.graffiti.events
Classpublic class CanvasEvent
InheritanceCanvasEvent Inheritance flash.events.Event

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10 - AIR 1.5

The Canvas Event provides a custom Event for Canvas events.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
CanvasEvent(type:String, zoom:Number, canvasWidth:uint, canvasHeight:uint, viewableRect:Rectangle, bubbles:Boolean = false, cancelable:Boolean = false)
The CanvasEvent constructor.
CanvasEvent
Public Constants
 ConstantDefined 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
Property Detail
canvasHeightproperty
canvasHeight:uint  [read-only]

Canvas Height


Implementation
    public function get canvasHeight():uint
canvasWidthproperty 
canvasWidth:uint  [read-only]

Canvas Width.


Implementation
    public function get canvasWidth():uint
viewableRectproperty 
viewableRect:Rectangle  [read-only]

Viewable Rectangle of the Canvas.


Implementation
    public function get viewableRect():Rectangle
zoomproperty 
zoom:Number  [read-only]

Canvas Zoom value.


Implementation
    public function get zoom():Number
Constructor Detail
CanvasEvent()Constructor
public function CanvasEvent(type:String, zoom:Number, canvasWidth:uint, canvasHeight:uint, viewableRect:Rectangle, bubbles:Boolean = false, cancelable:Boolean = false)

The CanvasEvent constructor.

Parameters
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.
Constant Detail
DRAGConstant
public static const DRAG:String = drag

Dispatched when the canvas position is changed.

ZOOMConstant 
public static const ZOOM:String = zoom

Dispatched when the canvas zoom value changes.