| Package | com.myflashlab.air.extensions.webView |
| Class | public class RichWebViewEvent |
| Inheritance | RichWebViewEvent flash.events.Event |
Deprecated! use com.myflashlab.air.extensions.richWebView.RichWebView instead.
| Method | Defined By | ||
|---|---|---|---|
RichWebViewEvent(type:String, data:* = null, bubbles:Boolean = false, cancelable:Boolean = false) | RichWebViewEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| BACK_CLICKED : String = onBackClicked [static]
On Android, this event will be dispatched when device's back button is hit. | RichWebViewEvent | ||
| EMBEDDED_BROWSER_ACTION : String = onEmbeddedBrowserAction [static] | RichWebViewEvent | ||
| EMBEDDED_BROWSER_CLOSED : int = 5 [static] | RichWebViewEvent | ||
| EMBEDDED_BROWSER_NAVIGATION_ABORTED : int = 4 [static] | RichWebViewEvent | ||
| EMBEDDED_BROWSER_NAVIGATION_EVENT : String = onEmbeddedBrowserNavigationEvent [static] | RichWebViewEvent | ||
| EMBEDDED_BROWSER_NAVIGATION_FAILED : int = 3 [static] | RichWebViewEvent | ||
| EMBEDDED_BROWSER_NAVIGATION_FINISHED : int = 2 [static] | RichWebViewEvent | ||
| EMBEDDED_BROWSER_NAVIGATION_STARTED : int = 1 [static] | RichWebViewEvent | ||
| PAGE_FINISHED : String = onPageFinished [static]
is dispatched as soon as the page request load has been completed. | RichWebViewEvent | ||
| PAGE_PROGRESS : String = onPageProgress [static]
is dispatched while web view is loading a web page. | RichWebViewEvent | ||
| PAGE_STARTED : String = onPageStarted [static]
is dispatched as soon as web view has started to load a new page. | RichWebViewEvent | ||
| PAGE_STARTING : String = onPageStarting [static]
is dispatched just before the web view starts to load a new page. | RichWebViewEvent | ||
| RECEIVED_MESSAGE_FROM_JS : String = fromJS [static]
is dispatched as soon as JS tries to send String messages to flash. | RichWebViewEvent | ||
| RECEIVED_SSL_ERROR : String = onReceivedSslError [static]
is dispatched if there's an error while loading the page. | RichWebViewEvent | ||
| SCREENSHOT : String = onBitmap [static]
is dispatched when the bitmapData object of the requested scrrenshot method requestBitmap() is ready. | RichWebViewEvent | ||
| TOUCH : String = onTouch [static]
Is dispatched as soon as you touch on the webview window in your app. | RichWebViewEvent | ||
| RichWebViewEvent | () | Constructor |
public function RichWebViewEvent(type:String, data:* = null, bubbles:Boolean = false, cancelable:Boolean = false)type:String | |
data:* (default = null) | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) |
| BACK_CLICKED | Constant |
public static const BACK_CLICKED:String = onBackClickedOn Android, this event will be dispatched when device's back button is hit. The following example shows you how to initialize the Extension in your project and how to use it. you can use this event to take your webview one page back or close it.
if (_ex.canGoBack) _ex.goBack(); else _ex.closeWebView();
| EMBEDDED_BROWSER_ACTION | Constant |
public static const EMBEDDED_BROWSER_ACTION:String = onEmbeddedBrowserAction| EMBEDDED_BROWSER_CLOSED | Constant |
public static const EMBEDDED_BROWSER_CLOSED:int = 5| EMBEDDED_BROWSER_NAVIGATION_ABORTED | Constant |
public static const EMBEDDED_BROWSER_NAVIGATION_ABORTED:int = 4| EMBEDDED_BROWSER_NAVIGATION_EVENT | Constant |
public static const EMBEDDED_BROWSER_NAVIGATION_EVENT:String = onEmbeddedBrowserNavigationEvent| EMBEDDED_BROWSER_NAVIGATION_FAILED | Constant |
public static const EMBEDDED_BROWSER_NAVIGATION_FAILED:int = 3| EMBEDDED_BROWSER_NAVIGATION_FINISHED | Constant |
public static const EMBEDDED_BROWSER_NAVIGATION_FINISHED:int = 2| EMBEDDED_BROWSER_NAVIGATION_STARTED | Constant |
public static const EMBEDDED_BROWSER_NAVIGATION_STARTED:int = 1| PAGE_FINISHED | Constant |
public static const PAGE_FINISHED:String = onPageFinishedis dispatched as soon as the page request load has been completed.
| PAGE_PROGRESS | Constant |
public static const PAGE_PROGRESS:String = onPageProgressis dispatched while web view is loading a web page. use
e.paramto get the progress percentage but note that this percentage is fake on iOS! it is real on Android though. iOS does not provide page loading progress event but to keep the AS3 API identical, we decided to fake it.
| PAGE_STARTED | Constant |
public static const PAGE_STARTED:String = onPageStartedis dispatched as soon as web view has started to load a new page.
| PAGE_STARTING | Constant |
public static const PAGE_STARTING:String = onPageStartingis dispatched just before the web view starts to load a new page.
| RECEIVED_MESSAGE_FROM_JS | Constant |
public static const RECEIVED_MESSAGE_FROM_JS:String = fromJSis dispatched as soon as JS tries to send String messages to flash.
| RECEIVED_SSL_ERROR | Constant |
public static const RECEIVED_SSL_ERROR:String = onReceivedSslErroris dispatched if there's an error while loading the page.
| SCREENSHOT | Constant |
public static const SCREENSHOT:String = onBitmap
is dispatched when the bitmapData object of the requested scrrenshot method requestBitmap() is ready.
| TOUCH | Constant |
public static const TOUCH:String = onTouchIs dispatched as soon as you touch on the webview window in your app.