extends ErrorEvent › TextEvent › Event
Available on all platforms
An object dispatches a SecurityErrorEvent object to report the occurrence
of a security error. Security errors reported through this class are
generally from asynchronous operations, such as loading data, in which
security violations may not manifest immediately. Your event listener can
access the object's
text property to determine what operation
was attempted and any URLs that were involved. If there are no event
listeners, the debugger version of Flash Player or the AIR Debug Launcher
(ADL) application automatically displays an error message that contains the
contents of the
text property. There is one type of security
Security error events are the final events dispatched for any target object. This means that any other events, including generic error events, are not dispatched for a target object that experiences a security error.
new (type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = "", id:Int = 0)
Creates an Event object that contains information about security error events. Event objects are passed as parameters to event listeners.
The type of the event. Event listeners can access this
information through the inherited
Determines whether the Event object participates in the
bubbling stage of the event flow. Event listeners can
access this information through the inherited
Determines whether the Event object can be canceled.
Event listeners can access this information through the
Text to be displayed as an error message. Event
listeners can access this information through the
A reference number to associate with the specific error.
staticinline read onlySECURITY_ERROR:String = "securityError"
SecurityErrorEvent.SECURITY_ERROR constant defines the
value of the
type property of a
This event has the following properties: