| Package | flash.events |
| Class | public class SecurityErrorEvent |
| Inheritance | SecurityErrorEvent ErrorEvent TextEvent Event Object |
text property에 액세스 하면, 시행된 조작과 거기에 관련하는 URL 를 확인할 수 있습니다. event listener가 없는 경우, 디버그판의 Flash Player 에 의해,text property의 내용을 포함한 에러 메세지가 자동적으로 표시됩니다. 시큐러티 에러 이벤트의 타입은 SecurityErrorEvent.SECURITY_ERROR 의 1 개만입니다.
시큐러티 에러 이벤트는, 모든 타겟 object에 관해서 dispatch되는 마지막 이벤트입니다. 즉, 일반적인 에러 이벤트를 포함한 그 외의 이벤트는, 시큐러티 에러가 발생하고 있는 타겟 object에 관해서 dispatch되지 않습니다.
See also
| Methods | 정의 | ||
|---|---|---|---|
| SecurityErrorEvent (type:String , bubbles:Boolean = false, cancelable:Boolean = false, text:String = "")
시큐러티 에러 이벤트에 관한 정보를 포함한 Event object를 작성합니다.
| SecurityErrorEvent | ||
| clone ():Event
SecurityErrorEvent object의 복사를 작성해, 각 property의 값을 원의 property의 값과 일치하도록(듯이) 설정합니다.
| SecurityErrorEvent | ||
![]() | formatToString (className:String , ... arguments):String
custom Event 클래스에
toString() Methods를 Implements하기 위한 유틸리티 함수입니다. | Event | |
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | isDefaultPrevented ():Boolean
이벤트로
preventDefault() 가 불려 갔는지 어떠했는지를 체크합니다. | Event | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
![]() | preventDefault ():void
이벤트의 디폴트 행동을 캔슬할 수 있는 경우에, 그 행동을 캔슬합니다.
| Event | |
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
![]() | stopImmediatePropagation ():void
event 플로우(flow)의 현재의 노드 및 후속 하는 노드로, event listener가 처리되지 않게 합니다.
| Event | |
![]() | stopPropagation ():void
event 플로우(flow)의 현재의 노드에 후속 하는 노드로, event listener가 처리되지 않게 합니다.
| Event | |
| toString ():String
SecurityErrorEvent object의 모든 property를 포함한 string를 돌려줍니다.
| SecurityErrorEvent | ||
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
| 정수 | 정의 | ||
|---|---|---|---|
![]() | ACTIVATE : String = "activate" [static]
activate event object의 type property의 값을 정의합니다. | Event | |
![]() | ADDED : String = "added" [static]
added event object의 type property의 값을 정의합니다. | Event | |
![]() | CANCEL : String = "cancel" [static]
cancelevent object의 type property의 값을 정의합니다. | Event | |
![]() | CHANGE : String = "change" [static]
change event object의 type property의 값을 정의합니다. | Event | |
![]() | CLOSE : String = "close" [static]
close event object의 type property의 값을 정의합니다. | Event | |
![]() | COMPLETE : String = "complete" [static]
complete event object의 type property의 값을 정의합니다. | Event | |
![]() | CONNECT : String = "connect" [static]
connect event object의 type property의 값을 정의합니다. | Event | |
![]() | DEACTIVATE : String = "deactivate" [static]
deactivate event object의 type property의 값을 정의합니다. | Event | |
![]() | ENTER_FRAME : String = "enterFrame" [static]
enterFrame event object의 type property의 값을 정의합니다. | Event | |
![]() | ERROR : String = "error" [static]
error event object의 type property치를 정의합니다. | ErrorEvent | |
![]() | ID3 : String = "id3" [static]
id3 event object의 type property의 값을 정의합니다. | Event | |
![]() | INIT : String = "init" [static]
init event object의 type property의 값을 정의합니다. | Event | |
![]() | LINK : String = "link" [static]
link event object의 type property의 값을 정의합니다. | TextEvent | |
![]() | MOUSE_LEAVE : String = "mouseLeave" [static]
mouseLeave event object의 type property의 값을 정의합니다. | Event | |
![]() | OPEN : String = "open" [static]
open event object의 type property의 값을 정의합니다. | Event | |
![]() | REMOVED : String = "removed" [static]
removed event object의 type property의 값을 정의합니다. | Event | |
![]() | RENDER : String = "render" [static]
render event object의 type property의 값을 정의합니다. | Event | |
![]() | RESIZE : String = "resize" [static]
resize event object의 type property의 값을 정의합니다. | Event | |
![]() | SCROLL : String = "scroll" [static]
scroll event object의 type property의 값을 정의합니다. | Event | |
| SECURITY_ERROR : String = "securityError" [static]
SecurityErrorEvent.SECURITY_ERROR 정수는,securityError event object의 type property치를 정의합니다. | SecurityErrorEvent | ||
![]() | SELECT : String = "select" [static]
select event object의 type property의 값을 정의합니다. | Event | |
![]() | SOUND_COMPLETE : String = "soundComplete" [static]
soundComplete event object의 type property의 값을 정의합니다. | Event | |
![]() | TAB_CHILDREN_CHANGE : String = "tabChildrenChange" [static]
tabChildrenChange event object의 type property의 값을 정의합니다. | Event | |
![]() | TAB_ENABLED_CHANGE : String = "tabEnabledChange" [static]
tabEnabledChange event object의 type property의 값을 정의합니다. | Event | |
![]() | TAB_INDEX_CHANGE : String = "tabIndexChange" [static]
tabIndexChange event object의 type property의 값을 정의합니다. | Event | |
![]() | TEXT_INPUT : String = "textInput" [static]
textInput event object의 type property의 값을 정의합니다. | TextEvent | |
![]() | UNLOAD : String = "unload" [static]
unload event object의 type property의 값을 정의합니다. | Event | |
| SecurityErrorEvent | () | constructor |
public 함수 SecurityErrorEvent(type:String , bubbles:Boolean = false, cancelable:Boolean = false, text:String = "")시큐러티 에러 이벤트에 관한 정보를 포함한 Event object를 작성합니다. event listener에게는 Event object가 Parameters로서 건네받습니다.
Parameterstype:String — 이벤트의 타입입니다. event listener는, Inheritance된 type property를 통해서 이 정보에 액세스 할 수 있습니다. 에러 이벤트의 타입은 SecurityErrorEvent.SECURITY_ERROR 의 1 개만입니다.
|
|
bubbles:Boolean (default = false) — Event object가 event 플로우(flow)의 바브 링 단계에서 처리될지 어떨지를 판단합니다. event listener는, Inheritance된 bubbles property를 통해서 이 정보에 액세스 할 수 있습니다.
|
|
cancelable:Boolean (default = false) — Event object가 캔슬 가능한가 어떤가를 판단합니다. event listener는, Inheritance된 cancelable property를 통해서 이 정보에 액세스 할 수 있습니다.
|
|
text:String (default = "") — 에러 메세지로서 표시되는 텍스트입니다. event listener는,text property를 통해서 이 정보에 액세스 할 수 있습니다.
|
See also
| clone | () | Methods |
public override function clone():Event SecurityErrorEvent object의 복사를 작성해, 각 property의 값을 원의 property의 값과 일치하도록(듯이) 설정합니다.
반환값Event —
원의 object와 같은 property치를 포함한 새로운 securityErrorEvent object입니다.
|
See also
| toString | () | Methods |
public override function toString():String
SecurityErrorEvent object의 모든 property를 포함한 string를 돌려줍니다. string는 다음의 형식입니다.
[securityErrorEvent type=value bubbles=value cancelable=value text=value]
반환값String —
SecurityErrorEvent object의 모든 property를 포함한 string입니다.
|
See also
| SECURITY_ERROR | 정수 |
public static const SECURITY_ERROR:String = "securityError"
SecurityErrorEvent.SECURITY_ERROR 정수는,securityError event object의 type property치를 정의합니다.
이 이벤트에는, 다음의 property가 있습니다.
| Property | Value |
|---|---|
bubbles | false |
cancelable | false 는, 캔슬하는 디폴트의 동작이 없는 것을 나타냅니다. |
currentTarget | event listener로 Event object를 액티브하게 처리하고 있는 object입니다. |
target | 시큐러티 에러를 보고하는 네트워크 object입니다. |
text | 에러 메세지로서 표시되는 텍스트입니다. |
See also
SecurityErrorEventExample 클래스를 사용해,
listener Methods securityErrorHandler() 를 인스턴스화해, dispatch되는 securityError 이벤트를 받도록(듯이)
설정하는 방법을 나타냅니다. 이러한 이벤트는, 로컬 파일에게만 액세스 하도록(듯이) 설정되어 있다
로컬 재생으로부터 네트워크 파일에 액세스 했을 경우, 또는 네트워크 파일에게만 액세스 하도록(듯이) 설정되어 있는 재생으로부터 로컬 파일에 액세스 했을 경우에 발생합니다.
메모:이 예로,securityError 이벤트를
생성하려면 ,[로컬에서의 재생에 관한 시큐러티] 를 [로컬 파일에게만 액세스 하는] 으로 설정해 SWF 파일을 컴파일 할 필요가 있습니다.
package {
import flash.display.Sprite;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.SecurityErrorEvent;
public class SecurityErrorEventExample extends Sprite {
public function SecurityErrorEventExample() {
var loader:URLLoader = new URLLoader();
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
var request:URLRequest = new URLRequest("http://www. [yourDomain]. com");
loader.load(request);
}
private function securityErrorHandler(event:SecurityErrorEvent) :void {
trace("securityErrorHandler: " + event);
}
}
}
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/flash/events/SecurityErrorEvent.html