Packageorg.wiiflash.events
Classpublic final class ButtonEvent
InheritanceButtonEvent Inheritance flash.events.Event

WiiFlash dispatches ButtonEvent objects when a user interacts with buttons on a Wiimote.



Public Properties
 PropertyDefined by
  state : Boolean
[read-only] State of the button.
ButtonEvent
Public Methods
 MethodDefined by
  
ButtonEvent(type:String, state:Boolean)
Creates an event object that contains information about button events.
ButtonEvent
Public Constants
 ConstantDefined by
  A_PRESS : String = "aPress"
[static] Type of the A press event.
ButtonEvent
  A_RELEASE : String = "aRelease"
[static] Type of the A release event.
ButtonEvent
  B_PRESS : String = "bPress"
[static] Type of the B press event.
ButtonEvent
  B_RELEASE : String = "bRelease"
[static] Type of the B release event.
ButtonEvent
  C_PRESS : String = "cPress"
[static] Type of the C press event.
ButtonEvent
  C_RELEASE : String = "cRelease"
[static] Type of the C release event.
ButtonEvent
  DOWN_PRESS : String = "downPress"
[static] Type of the Down press event.
ButtonEvent
  DOWN_RELEASE : String = "downRelease"
[static] Type of the Down release event.
ButtonEvent
  HOME_PRESS : String = "homePress"
[static] Type of the Home press event.
ButtonEvent
  HOME_RELEASE : String = "homeRelease"
[static] Type of the Home release event.
ButtonEvent
  LEFT_PRESS : String = "leftPress"
[static] Type of the Left press event.
ButtonEvent
  LEFT_RELEASE : String = "leftRelease"
[static] Type of the Left release event.
ButtonEvent
  L_PRESS : String = "lPress"
[static] Type of the L press event.
ButtonEvent
  L_RELEASE : String = "lRelease"
[static] Type of the L release event.
ButtonEvent
  MINUS_PRESS : String = "minusPress"
[static] Type of the - press event.
ButtonEvent
  MINUS_RELEASE : String = "minusRelease"
[static] Type of the - release event.
ButtonEvent
  ONE_PRESS : String = "onePress"
[static] Type of the 1 press event.
ButtonEvent
  ONE_RELEASE : String = "oneRelease"
[static] Type of the 1 release event.
ButtonEvent
  PLUS_PRESS : String = "plusPress"
[static] Type of the + press event.
ButtonEvent
  PLUS_RELEASE : String = "plusRelease"
[static] Type of the + release event.
ButtonEvent
  RIGHT_PRESS : String = "rightPress"
[static] Type of the Right press event.
ButtonEvent
  RIGHT_RELEASE : String = "rightRelease"
[static] Type of the Right release event.
ButtonEvent
  R_PRESS : String = "rPress"
[static] Type of the R press event.
ButtonEvent
  R_RELEASE : String = "rRelease"
[static] Type of the R release event.
ButtonEvent
  TWO_PRESS : String = "twoPress"
[static] Type of the 2 press event.
ButtonEvent
  TWO_RELEASE : String = "twoRelease"
[static] Type of the 2 release event.
ButtonEvent
  UP_PRESS : String = "upPress"
[static] Type of the Up press event.
ButtonEvent
  UP_RELEASE : String = "upRelease"
[static] Type of the Up release event.
ButtonEvent
  X_PRESS : String = "xPress"
[static] Type of the X press event.
ButtonEvent
  X_RELEASE : String = "xRelease"
[static] Type of the X release event.
ButtonEvent
  Y_PRESS : String = "yPress"
[static] Type of the Y press event.
ButtonEvent
  Y_RELEASE : String = "yRelease"
[static] Type of the Y release event.
ButtonEvent
  ZL_PRESS : String = "zlPress"
[static] Type of the ZL press event.
ButtonEvent
  ZL_RELEASE : String = "zlRelease"
[static] Type of the ZL release event.
ButtonEvent
  Z_PRESS : String = "zPress"
[static] Type of the Z press event.
ButtonEvent
  Z_RELEASE : String = "zRelease"
[static] Type of the Z release event.
ButtonEvent
  ZR_PRESS : String = "zrPress"
[static] Type of the ZR press event.
ButtonEvent
  ZR_RELEASE : String = "zrRelease"
[static] Type of the ZR release event.
ButtonEvent
Property detail
stateproperty
state:Boolean  [read-only]

State of the button. true for down; false otherwise.

Implementation
    public function get state():Boolean
Constructor detail
ButtonEvent()constructor
public function ButtonEvent(type:String, state:Boolean)

Creates an event object that contains information about button events.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
state:Boolean — State of the button. true for down; false otherwise.
Constant detail
A_PRESSconstant
public static const A_PRESS:String = "aPress"

Type of the A press event.

A_RELEASEconstant 
public static const A_RELEASE:String = "aRelease"

Type of the A release event.

B_PRESSconstant 
public static const B_PRESS:String = "bPress"

Type of the B press event.

B_RELEASEconstant 
public static const B_RELEASE:String = "bRelease"

Type of the B release event.

C_PRESSconstant 
public static const C_PRESS:String = "cPress"

Type of the C press event.

C_RELEASEconstant 
public static const C_RELEASE:String = "cRelease"

Type of the C release event.

DOWN_PRESSconstant 
public static const DOWN_PRESS:String = "downPress"

Type of the Down press event.

DOWN_RELEASEconstant 
public static const DOWN_RELEASE:String = "downRelease"

Type of the Down release event.

HOME_PRESSconstant 
public static const HOME_PRESS:String = "homePress"

Type of the Home press event.

HOME_RELEASEconstant 
public static const HOME_RELEASE:String = "homeRelease"

Type of the Home release event.

LEFT_PRESSconstant 
public static const LEFT_PRESS:String = "leftPress"

Type of the Left press event.

LEFT_RELEASEconstant 
public static const LEFT_RELEASE:String = "leftRelease"

Type of the Left release event.

L_PRESSconstant 
public static const L_PRESS:String = "lPress"

Type of the L press event.

L_RELEASEconstant 
public static const L_RELEASE:String = "lRelease"

Type of the L release event.

MINUS_PRESSconstant 
public static const MINUS_PRESS:String = "minusPress"

Type of the - press event.

MINUS_RELEASEconstant 
public static const MINUS_RELEASE:String = "minusRelease"

Type of the - release event.

ONE_PRESSconstant 
public static const ONE_PRESS:String = "onePress"

Type of the 1 press event.

ONE_RELEASEconstant 
public static const ONE_RELEASE:String = "oneRelease"

Type of the 1 release event.

PLUS_PRESSconstant 
public static const PLUS_PRESS:String = "plusPress"

Type of the + press event.

PLUS_RELEASEconstant 
public static const PLUS_RELEASE:String = "plusRelease"

Type of the + release event.

RIGHT_PRESSconstant 
public static const RIGHT_PRESS:String = "rightPress"

Type of the Right press event.

RIGHT_RELEASEconstant 
public static const RIGHT_RELEASE:String = "rightRelease"

Type of the Right release event.

R_PRESSconstant 
public static const R_PRESS:String = "rPress"

Type of the R press event.

R_RELEASEconstant 
public static const R_RELEASE:String = "rRelease"

Type of the R release event.

TWO_PRESSconstant 
public static const TWO_PRESS:String = "twoPress"

Type of the 2 press event.

TWO_RELEASEconstant 
public static const TWO_RELEASE:String = "twoRelease"

Type of the 2 release event.

UP_PRESSconstant 
public static const UP_PRESS:String = "upPress"

Type of the Up press event.

UP_RELEASEconstant 
public static const UP_RELEASE:String = "upRelease"

Type of the Up release event.

X_PRESSconstant 
public static const X_PRESS:String = "xPress"

Type of the X press event.

X_RELEASEconstant 
public static const X_RELEASE:String = "xRelease"

Type of the X release event.

Y_PRESSconstant 
public static const Y_PRESS:String = "yPress"

Type of the Y press event.

Y_RELEASEconstant 
public static const Y_RELEASE:String = "yRelease"

Type of the Y release event.

ZL_PRESSconstant 
public static const ZL_PRESS:String = "zlPress"

Type of the ZL press event.

ZL_RELEASEconstant 
public static const ZL_RELEASE:String = "zlRelease"

Type of the ZL release event.

Z_PRESSconstant 
public static const Z_PRESS:String = "zPress"

Type of the Z press event.

Z_RELEASEconstant 
public static const Z_RELEASE:String = "zRelease"

Type of the Z release event.

ZR_PRESSconstant 
public static const ZR_PRESS:String = "zrPress"

Type of the ZR press event.

ZR_RELEASEconstant 
public static const ZR_RELEASE:String = "zrRelease"

Type of the ZR release event.