| Package | flash.events | 
| Class | public class DeviceRotationEvent | 
| Inheritance | DeviceRotationEvent    Event   Object | 
| Language Version: | ActionScript 3.0 | 
| Runtime Versions: | AIR 26.0 | 
Related API Elements
| Property | Defined By | ||
|---|---|---|---|
![]()  | bubbles : Boolean [read-only] 
	Indicates whether an event is a bubbling event.  | Event | |
![]()  | cancelable : Boolean [read-only] 
	Indicates whether the behavior associated with the event can be prevented.  | Event | |
![]()  | constructor : Object 
	 A reference to the class object or constructor function for a given object instance.  | Object | |
![]()  | currentTarget : Object [read-only] 
	The object that is actively processing the Event object with an event listener.  | Event | |
![]()  | eventPhase : uint [read-only] 
	The current phase in the event flow.  | Event | |
|     pitch : Number 
        pitch along the x-axis, measured in degrees.  | DeviceRotationEvent | ||
|     quaternion : Array  
		Quaternion data for the device rotation in the [w, x, y, z] format.  | DeviceRotationEvent | ||
|     roll : Number 
        Roll along the y-axis, measured in degrees.  | DeviceRotationEvent | ||
![]()  | target : Object [read-only] 
	The event target.  | Event | |
|     timestamp : Number  
		The number of milliseconds at the time of the event since the runtime was initialized.  | DeviceRotationEvent | ||
![]()  | type : String [read-only] 
	The type of event.  | Event | |
|     yaw : Number 
		yaw along the z-axis, measured in degrees.  | DeviceRotationEvent | ||
| Method | Defined By | ||
|---|---|---|---|
    DeviceRotationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, timestamp:Number = 0, roll:Number = 0, pitch:Number = 0, yaw:Number = 0, quaternion:Array = null) 
	Creates an DeviceRotationEvent object that contains information about roll, yaw, pitch along the three dimensional axis.  | DeviceRotationEvent | ||
[override]  
	     Creates a copy of an DeviceRotationEvent object and sets the value of each property to match that of  
	     the original.  | DeviceRotationEvent | ||
![]()  | 
	 A utility function for implementing the toString() method in custom 
	 ActionScript 3.0 Event classes.  | Event | |
![]()  | 
	 Indicates whether an object has a specified property defined.  | Object | |
![]()  | 
	Checks whether the preventDefault() method has been called on the event.  | Event | |
![]()  | 
	 Indicates whether an instance of the Object class is in the prototype chain of the object specified 
	 as the parameter.  | Object | |
![]()  | 
	Cancels an event's default behavior if that behavior can be canceled.  | Event | |
![]()  | 
	 Indicates whether the specified property exists and is enumerable.  | Object | |
![]()  | 
     Sets the availability of a dynamic property for loop operations.  | Object | |
![]()  | 
	Prevents processing of any event listeners in the current node and any subsequent nodes in 
	the event flow.  | Event | |
![]()  | 
	Prevents processing of any event listeners in nodes subsequent to the current node in the 
	event flow.  | Event | |
![]()  | 
	 Returns the string representation of this object, formatted according to locale-specific conventions.  | Object | |
[override]  
	     Returns a string that contains all the properties of the DeviceRotationEvent object.  | DeviceRotationEvent | ||
![]()  | 
	 Returns the primitive value of the specified object.  | Object | |
| Constant | Defined By | ||
|---|---|---|---|
|     UPDATE : String = "update" [static] 
	Defines the value of the type property of a DeviceRotationEvent event object.  | DeviceRotationEvent | ||
    pitch | property | 
    quaternion | property | 
    roll | property | 
    timestamp | property | 
timestamp:Number| Language Version: | ActionScript 3.0 | 
| Runtime Versions: | AIR 26.0 | 
 
		The number of milliseconds at the time of the event since the runtime was initialized. 
		For example, if the device captures DeviceRotation data 4 seconds after the application initializes, 
		then the timestamp property of the event is set to 4000. 
		
        
Implementation
    public function get timestamp():Number    public function set timestamp(value:Number):void    yaw | property | 
    DeviceRotationEvent | () | Constructor | 
public function DeviceRotationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, timestamp:Number = 0, roll:Number = 0, pitch:Number = 0, yaw:Number = 0, quaternion:Array = null)| Language Version: | ActionScript 3.0 | 
| Runtime Versions: | AIR 26.0 | 
Creates an DeviceRotationEvent object that contains information about roll, yaw, pitch along the three dimensional axis. Event objects are passed as parameters to event listeners.
Parameterstype:String —  The type of the event. Event listeners can access this information through the inherited type property. There is only one type of update event: AccelerometerEvent.UPDATE.
	 | |
bubbles:Boolean (default = false) — Determines whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.  
	 | |
cancelable:Boolean (default = false) — Determines whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property. 
	 | |
timestamp:Number (default = 0) — The timestamp of the DeviceRotation update.
     | |
roll:Number (default = 0) — The roll value in degrees along the y-axis.
     | |
pitch:Number (default = 0) — The pitch value in degrees along the x-axis.
	 | |
yaw:Number (default = 0) — The yaw value in degrees along the z-axis.
	 | |
quaternion:Array (default = null) — The quaternions for the device rotation in [w, x, y, z] format.
	 | 
clone | () | method | 
override public function clone():Event| Language Version: | ActionScript 3.0 | 
| Runtime Versions: | AIR 26.0 | 
Creates a copy of an DeviceRotationEvent object and sets the value of each property to match that of the original.
ReturnsEvent — A new DeviceRotationEvent object with property values that match those of the original.
	     
          | 
toString | () | method | 
override public function toString():String| Language Version: | ActionScript 3.0 | 
| Runtime Versions: | AIR 26.0 | 
Returns a string that contains all the properties of the DeviceRotationEvent object. The following format is used:
[DeviceRotationEvent type=value bubbles=value cancelable=value 
	     timestamp=value roll=value pitch=value yaw=value quaternion=value ] 
String — A string that contains all the properties of the DeviceRotationEvent object.
	     
          | 
    UPDATE | Constant | 
public static const UPDATE:String = "update"| Language Version: | ActionScript 3.0 | 
| Runtime Versions: | AIR 26.0 | 
	Defines the value of the type property of a DeviceRotationEvent event object.  
	
This event has the following properties:
| Property | Value | 
|---|---|
bubbles | false | 
cancelable | false; there is no default behavior to cancel. | 
currentTarget | The object that is actively processing the Event object with an event listener. | 
timestamp | The timestamp of the DeviceRotation update. | 
roll | The roll value in degrees. | 
pitch | The pitch value in degrees. | 
yaw | The yaw value in degrees. | 
quaternion | The quaternion data in [w, x, y, z] format | 
Thu Dec 6 2018, 01:12 PM -08:00
 
 Hide Inherited Public Properties
 Show Inherited Public Properties