BETA ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Hide Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes

Language Reference only
Filters: AIR 32.0 and earlier, Flash Player 32.0 and earlier, Flash Lite 4
None
Hide Filters
flash.events 

PermissionEvent  - AS3

(Beta)
Packageflash.events
Classpublic final class PermissionEvent
InheritancePermissionEvent Inheritance Event Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedbubbles : Boolean
[read-only] Indicates whether an event is a bubbling event.
Event
 Inheritedcancelable : Boolean
[read-only] Indicates whether the behavior associated with the event can be prevented.
Event
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcurrentTarget : Object
[read-only] The object that is actively processing the Event object with an event listener.
Event
 InheritedeventPhase : uint
[read-only] The current phase in the event flow.
Event
      status : String
[read-only] Check whether the permission has been granted or denied.
PermissionEvent
 Inheritedtarget : Object
[read-only] The event target.
Event
 Inheritedtype : String
[read-only] The type of event.
Event
Public Methods
 MethodDefined By
  
    PermissionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:String = "denied")
Creates an PermissionEvent object that contains information about the name of the permission and its status.
PermissionEvent
  
    clone():Event
[override] Creates a copy of an PermissionEvent object and sets the value of each property to match that of the original.
PermissionEvent
 Inherited
formatToString(className:String, ... arguments):String
A utility function for implementing the toString() method in custom ActionScript 3.0 Event classes.
Event
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Checks whether the preventDefault() method has been called on the event.
Event
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Cancels an event's default behavior if that behavior can be canceled.
Event
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.
Event
 Inherited
Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.
Event
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
  
    toString():String
[override] Returns a string that contains all the properties of the PermissionEvent object.
PermissionEvent
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  PERMISSION_STATUS : String = "permissionStatus"
[static]
PermissionEvent
Property Detail
    

status

property
status:String  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: AIR 24.0

Check whether the permission has been granted or denied.



Implementation
    public function get status():String

Related API Elements

flash.events.PermissionStatus.GRANTED
flash.events.PermissionStatus.DENIED
Constructor Detail
    

PermissionEvent

()Constructor
public function PermissionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:String = "denied")

Language Version: ActionScript 3.0
Runtime Versions: AIR 24.0

Creates an PermissionEvent object that contains information about the name of the permission and its status.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
status:String (default = "denied")
Method Detail

    clone

()method
override public function clone():Event

Language Version: ActionScript 3.0
Runtime Versions: AIR 24.0

Creates a copy of an PermissionEvent object and sets the value of each property to match that of the original.

Returns
Event — A new PermissionEvent 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 24.0

Returns a string that contains all the properties of the PermissionEvent object. The following format is used:

[PermissionEvent type=value bubbles=value cancelable=value permission=value status=value]

Returns
String — A string that contains all the properties of the PermissionEvent object.
Constant Detail

PERMISSION_STATUS

Constant
public static const PERMISSION_STATUS:String = "permissionStatus"