flash.events

# PermissionEvent - AS3

Package | flash.events
Class | public final class PermissionEvent
Inheritance | PermissionEvent Event Object

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
status : String
[read-only] Check whether the permission has been granted or denied.
PermissionEvent
target : Object
[read-only] The event target.
Event
type : String
[read-only] The type of event.
Event
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined 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
|  | formatToString(className:String, ... arguments):String A utility function for implementing the toString() method in custom ActionScript 3.0 Event classes. | Event
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isDefaultPrevented():Boolean Checks whether the preventDefault() method has been called on the event. | Event
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | preventDefault():void Cancels an event's default behavior if that behavior can be canceled. | Event
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | stopImmediatePropagation():void Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow. | Event
|  | stopPropagation():void Prevents processing of any event listeners in nodes subsequent to the current node in the event flow. | Event
|  | toLocaleString():String 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
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants
Hide Inherited Public Constants
Show Inherited Public Constants

| Constant | Defined 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"`

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00