Paquete | mx.managers |
Interfaz | public interface IBrowserManager extends IEventDispatcher |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
BrowserManager.getInstance()
method.
Más ejemplos
Using the BrowserManager
Setting the title of the HTML wrapper
Passing request data with URL fragments
Accessing information about the current URL
Elementos de API relacionados
Propiedad | Definido por | ||
---|---|---|---|
base : String [solo lectura]
The portion of current URL before the '#' as it appears
in the browser address bar. | IBrowserManager | ||
fragment : String [solo lectura]
The portion of current URL after the '#' as it appears
in the browser address bar. | IBrowserManager | ||
title : String [solo lectura]
The title of the application as it should appear in the
browser history. | IBrowserManager | ||
url : String [solo lectura]
The current URL as it appears in the browser address bar. | IBrowserManager |
Método | Definido por | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | IEventDispatcher | ||
Distribuye un evento en el flujo del evento. | IEventDispatcher | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | IEventDispatcher | ||
Initializes the BrowserManager. | IBrowserManager | ||
Initializes the BrowserManager. | IBrowserManager | ||
Elimina un detector del objeto EventDispatcher. | IEventDispatcher | ||
Changes the fragment of the URL after the '#' in the browser. | IBrowserManager | ||
Changes the text in the browser's title bar. | IBrowserManager | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | IEventDispatcher |
Evento | Resumen | Definido por | ||
---|---|---|---|---|
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 | propiedad |
fragment | propiedad |
fragment:String
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The portion of current URL after the '#' as it appears
in the browser address bar. Use the setURLFragment()
method to change this value.
Implementación
public function get fragment():String
title | propiedad |
url | propiedad |
init | () | método |
public function init(value:String = null, title:String = null):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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.
Parámetros
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 | () | método |
public function initForHistoryManager():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | () | método |
public function setFragment(value:String):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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.
Parámetros
value:String — The new fragment to use after the '#' in the URL.
|
setTitle | () | método |
public function setTitle(value:String):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Changes the text in the browser's title bar. This method does not affect the browser's history.
Parámetros
value:String — The new title to use in the browser's title bar.
|
browserURLChange | Evento |
mx.events.BrowserChangeEvent
propiedad BrowserChangeEvent.type =
mx.events.BrowserChangeEvent.BROWSER_URL_CHANGE
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | Evento |
flash.events.Event
propiedad Event.type =
flash.events.Event.CHANGE
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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.
La constanteEvent.CHANGE
define el valor de la propiedad type
de un objeto de evento change
.
Este evento tiene las propiedades siguientes:
Propiedad | Valor |
---|---|
bubbles | true |
cancelable | false ; no hay ningún comportamiento predeterminado que cancelar. |
currentTarget | Objeto que procesa de forma activa el objeto de evento con un detector de eventos. |
target | Objeto al que se ha modificado su valor. El objeto target no siempre es el objeto de la lista de visualización que registró el detector de eventos. Utilice la propiedad currentTarget para acceder al objeto de la lista de visualización que está procesando el evento actualmente. |
urlChange | Evento |
mx.events.BrowserChangeEvent
propiedad BrowserChangeEvent.type =
mx.events.BrowserChangeEvent.URL_CHANGE
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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, 02:12 PM Z