| Package | org.wiiflash |
| Class | public final class BalanceBoard |
| Implements | flash.events.IEventDispatcher |
balanceBoard property of a Wiimote object.
var wiimote:Wiimote = new Wiimote(); myWiimote.addEventListener( WiimoteEvent.BalanceBoard_CONNECT, onBalanceBoardConnected ); myWiimote.addEventListener( WiimoteEvent.BalanceBoard_DISCONNECT, onBalanceBoardDisconnected );
See also
| Property | Defined by | ||
|---|---|---|---|
| bottomLeftKg : Number [read-only]
Value of the bottom left sensor.
| BalanceBoard | ||
| bottomRightKg : Number [read-only]
Value of the bottom right sensor.
| BalanceBoard | ||
| centerOfGravity : Point [read-only]
Current center of gravity on the Balance Board.
| BalanceBoard | ||
| topLeftKg : Number [read-only]
Value of the top left sensor.
| BalanceBoard | ||
| topRightKg : Number [read-only]
Value of the top right sensor.
| BalanceBoard | ||
| totalKg : Number [read-only]
Total Kg on the Balance Board
This value is scaled by the calibration data that has been read from the Balance Board.
| BalanceBoard | ||
| Method | Defined by | ||
|---|---|---|---|
|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with a BalanceBoard object so that the listener receives notification of an event.
| BalanceBoard | ||
|
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| BalanceBoard | ||
|
hasEventListener(type:String):Boolean
Checks whether the BalanceBoard object has any listeners registered for a specific type of event.
| BalanceBoard | ||
|
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the BalanceBoard object.
| BalanceBoard | ||
|
toString():String
Returns the string representation of the specified object.
| BalanceBoard | ||
|
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this BalanceBoard object or any of its ancestors for the specified event type.
| BalanceBoard | ||
| bottomLeftKg | property |
bottomLeftKg:Number [read-only]Value of the bottom left sensor. This value is scaled by the calibration data that has been read from the Balance Board.
Implementation public function get bottomLeftKg():Number
| bottomRightKg | property |
bottomRightKg:Number [read-only]Value of the bottom right sensor. This value is scaled by the calibration data that has been read from the Balance Board.
Implementation public function get bottomRightKg():Number
| centerOfGravity | property |
centerOfGravity:Point [read-only]Current center of gravity on the Balance Board. Expressed a Point with x and y gravity. This value is scaled by the calibration data that has been read from the Balance Board.
Implementation public function get centerOfGravity():Point
| topLeftKg | property |
topLeftKg:Number [read-only]Value of the top left sensor. This value is scaled by the calibration data that has been read from the Balance Board.
Implementation public function get topLeftKg():Number
| topRightKg | property |
topRightKg:Number [read-only]Value of the top right sensor. This value is scaled by the calibration data that has been read from the Balance Board.
Implementation public function get topRightKg():Number
| totalKg | property |
totalKg:Number [read-only]Total Kg on the Balance Board This value is scaled by the calibration data that has been read from the Balance Board.
Implementation public function get totalKg():Number
| addEventListener | () | method |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidRegisters an event listener object with a BalanceBoard object so that the listener receives notification of an event.
Parameterstype:String — The type of event.
|
|
listener:Function — The listener function that processes the event.
|
|
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases.
|
|
priority:int (default = 0) — The priority level of the event listener.
|
|
useWeakReference:Boolean (default = false) — Determines whether the reference to the listener is strong or weak.
|
See also
| dispatchEvent | () | method |
public function dispatchEvent(event:Event):BooleanDispatches an event into the event flow.
Parametersevent:Event — The Event object dispatched into the event flow.
|
Boolean |
See also
| hasEventListener | () | method |
public function hasEventListener(type:String):BooleanChecks whether the BalanceBoard object has any listeners registered for a specific type of event.
Parameterstype:String — The type of event.
|
Boolean — A value of true if a listener of the specified type is registered; false otherwise.
|
See also
| removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidRemoves a listener from the BalanceBoard object.
Parameterstype:String — The type of event.
|
|
listener:Function — The listener object to remove.
|
|
useCapture:Boolean (default = false) — Specifies whether the listener was registered for the capture phase or the target and bubbling phases.
|
See also
| toString | () | method |
public function toString():StringReturns the string representation of the specified object.
ReturnsString — A string representation of the object.
|
| willTrigger | () | method |
public function willTrigger(type:String):BooleanChecks whether an event listener is registered with this BalanceBoard object or any of its ancestors for the specified event type.
Parameterstype:String — The type of event.
|
Boolean — A value of true if a listener of the specified type will be triggered; false otherwise.
|
See also