패키지 | mx.managers |
인터페이스 | public interface IBrowserManager extends IEventDispatcher |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
BrowserManager.getInstance()
method.
기타 예제
Using the BrowserManager
Setting the title of the HTML wrapper
Passing request data with URL fragments
Accessing information about the current URL
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
base : String [읽기 전용]
The portion of current URL before the '#' as it appears
in the browser address bar. | IBrowserManager | ||
fragment : String [읽기 전용]
The portion of current URL after the '#' as it appears
in the browser address bar. | IBrowserManager | ||
title : String [읽기 전용]
The title of the application as it should appear in the
browser history. | IBrowserManager | ||
url : String [읽기 전용]
The current URL as it appears in the browser address bar. | IBrowserManager |
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
Initializes the BrowserManager. | IBrowserManager | ||
Initializes the BrowserManager. | IBrowserManager | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
Changes the fragment of the URL after the '#' in the browser. | IBrowserManager | ||
Changes the text in the browser's title bar. | IBrowserManager | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
이벤트 | 요약 | 정의 주체 | ||
---|---|---|---|---|
Dispatched when the URL is changed by the browser. | IBrowserManager | |||
Dispatched when the URL is changed either by the user interacting with the browser, invoking an application in AIR, or by setting the property programmatically. | IBrowserManager | |||
Dispatched when the URL is changed by the application. | IBrowserManager |
base | 속성 |
fragment | 속성 |
title | 속성 |
url | 속성 |
init | () | 메서드 |
public function init(value:String = null, title:String = null):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Initializes the BrowserManager. The BrowserManager will get the initial URL. If it
has a fragment, it will dispatch a BROWSER_URL_CHANGE
event.
This method sets the value of the ApplicationGlobals.application.historyManagementEnabled
property to false
because the HistoryManager generally interferes with your
application's handling of URL fragments.
매개 변수
value:String (default = null ) — The fragment to use if no fragment is in the initial URL.
| |
title:String (default = null ) — The title to use if no fragment is in the initial URL.
|
initForHistoryManager | () | 메서드 |
public function initForHistoryManager():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Initializes the BrowserManager. The HistoryManager calls this method to
prepare the BrowserManager for further calls from the HistoryManager. You cannot use
the HistoryManager and call the setFragment()
method from the application.
As a result, the init()
method usually sets
the value of the ApplicationGlobals.application.historyManagementEnabled
property to false
to disable
the HistoryManager.
setFragment | () | 메서드 |
public function setFragment(value:String):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Changes the fragment of the URL after the '#' in the browser. An attempt will be made to track this URL in the browser's history.
If the title is set, the old title in the browser is replaced by the new title.
To store the URL, a JavaScript
method named setBrowserURL()
will be called.
The application's HTML wrapper must have that method which
must implement a mechanism for taking this
value and registering it with the browser's history scheme
and address bar.
When set, the APPLICATION_URL_CHANGE
event is dispatched. If the event
is cancelled, the setBrowserURL()
method will not be called.
매개 변수
value:String — The new fragment to use after the '#' in the URL.
|
setTitle | () | 메서드 |
browserURLChange | 이벤트 |
mx.events.BrowserChangeEvent
속성 BrowserChangeEvent.type =
mx.events.BrowserChangeEvent.BROWSER_URL_CHANGE
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Dispatched when the URL is changed by the browser.
TheBrowserChangeEvent.BROWSER_URL_CHANGE
constant defines the value of the
type
property of the event object for a browserURLChange
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
lastURL | The previous value of the BrowserManager's
url property. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
url | The new value of the BrowserManager's
url property. |
change | 이벤트 |
flash.events.Event
속성 Event.type =
flash.events.Event.CHANGE
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Dispatched when the URL is changed either by the user interacting with the browser, invoking an application in AIR, or by setting the property programmatically.
Event.CHANGE
상수는 change
이벤트 객체의 type
속성 값을 정의합니다.
이 이벤트에는 다음과 같은 속성이 있습니다.
속성 | 값 |
---|---|
bubbles | true |
cancelable | false . 취소할 기본 비헤이비어가 없습니다. |
currentTarget | 이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다. |
target | 값이 수정된 객체입니다. target 은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다. |
urlChange | 이벤트 |
mx.events.BrowserChangeEvent
속성 BrowserChangeEvent.type =
mx.events.BrowserChangeEvent.URL_CHANGE
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Dispatched when the URL is changed by the application.
TheBrowserChangeEvent.URL_CHANGE
constant defines the value of the
type
property of the event object for a urlChange
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
lastURL | The previous value of the BrowserManager's
url property. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
url | The new value of the BrowserManager's
url property. |
Tue Jun 12 2018, 03:17 PM Z