Packagecom.diadraw.extensions.camera
Classpublic class NativeCameraDriverEvent
InheritanceNativeCameraDriverEvent Inheritance flash.events.Event

Class for dealing with events from the native camera.



Public Properties
 PropertyDefined By
  bitmapData : BitmapData
Determines the frame's pixel data for NativeCameraDriverEvent.FRAME_READY.
NativeCameraDriverEvent
  CAMERA_STARTED : String = CAMERA_STARTED
[static] The camera preview has started.
NativeCameraDriverEvent
  data : String
[read-only]
NativeCameraDriverEvent
  frameHeight : Number
Determines the frame height for NativeCameraDriverEvent.FRAME_READY.
NativeCameraDriverEvent
  FRAME_READY : String = FRAME_READY
[static] A frame is ready to be read from the camera.
NativeCameraDriverEvent
  frameWidth : Number
Determines the frame width for NativeCameraDriverEvent.FRAME_READY.
NativeCameraDriverEvent
  message : String
[read-only] Gives you information on the camera status.
NativeCameraDriverEvent
  STATUS_EVENT : String = STATUS_EVENT
[static] The camera has updated its status.
NativeCameraDriverEvent
Public Methods
 MethodDefined By
  
NativeCameraDriverEvent(_type:String, _message:String, _data:String, _bubbles:Boolean = false, _cancelable:Boolean = false)
Constructor.
NativeCameraDriverEvent
Property Detail
bitmapDataproperty
bitmapData:BitmapData

Determines the frame's pixel data for NativeCameraDriverEvent.FRAME_READY.


Implementation
    public function get bitmapData():BitmapData
    public function set bitmapData(value:BitmapData):void
CAMERA_STARTEDproperty 
public static var CAMERA_STARTED:String = CAMERA_STARTED

The camera preview has started.

dataproperty 
data:String  [read-only]


Implementation
    public function get data():String
FRAME_READYproperty 
public static var FRAME_READY:String = FRAME_READY

A frame is ready to be read from the camera. Read the event's bitmapData, frameWidth and frameHeight properties to get the frame.

frameHeightproperty 
frameHeight:Number

Determines the frame height for NativeCameraDriverEvent.FRAME_READY.


Implementation
    public function get frameHeight():Number
    public function set frameHeight(value:Number):void
frameWidthproperty 
frameWidth:Number

Determines the frame width for NativeCameraDriverEvent.FRAME_READY.


Implementation
    public function get frameWidth():Number
    public function set frameWidth(value:Number):void
messageproperty 
message:String  [read-only]

Gives you information on the camera status.


Implementation
    public function get message():String
STATUS_EVENTproperty 
public static var STATUS_EVENT:String = STATUS_EVENT

The camera has updated its status. Read the event's message property to get status information.

Constructor Detail
NativeCameraDriverEvent()Constructor
public function NativeCameraDriverEvent(_type:String, _message:String, _data:String, _bubbles:Boolean = false, _cancelable:Boolean = false)

Constructor.

Parameters
_type:String
 
_message:String
 
_data:String
 
_bubbles:Boolean (default = false)
 
_cancelable:Boolean (default = false)