Packagecom.myflashlab.air.extensions.webView
Classpublic class RichWebViewEvent
InheritanceRichWebViewEvent Inheritance flash.events.Event

Deprecated! use com.myflashlab.air.extensions.richWebView.RichWebView instead.



Public Methods
 MethodDefined By
  
RichWebViewEvent(type:String, data:* = null, bubbles:Boolean = false, cancelable:Boolean = false)
RichWebViewEvent
Public Constants
 ConstantDefined 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
Constructor Detail
RichWebViewEvent()Constructor
public function RichWebViewEvent(type:String, data:* = null, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
data:* (default = null)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant Detail
BACK_CLICKEDConstant
public static const BACK_CLICKED:String = onBackClicked

On 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_ACTIONConstant 
public static const EMBEDDED_BROWSER_ACTION:String = onEmbeddedBrowserAction

EMBEDDED_BROWSER_CLOSEDConstant 
public static const EMBEDDED_BROWSER_CLOSED:int = 5

EMBEDDED_BROWSER_NAVIGATION_ABORTEDConstant 
public static const EMBEDDED_BROWSER_NAVIGATION_ABORTED:int = 4

EMBEDDED_BROWSER_NAVIGATION_EVENTConstant 
public static const EMBEDDED_BROWSER_NAVIGATION_EVENT:String = onEmbeddedBrowserNavigationEvent

EMBEDDED_BROWSER_NAVIGATION_FAILEDConstant 
public static const EMBEDDED_BROWSER_NAVIGATION_FAILED:int = 3

EMBEDDED_BROWSER_NAVIGATION_FINISHEDConstant 
public static const EMBEDDED_BROWSER_NAVIGATION_FINISHED:int = 2

EMBEDDED_BROWSER_NAVIGATION_STARTEDConstant 
public static const EMBEDDED_BROWSER_NAVIGATION_STARTED:int = 1

PAGE_FINISHEDConstant 
public static const PAGE_FINISHED:String = onPageFinished

is dispatched as soon as the page request load has been completed.

PAGE_PROGRESSConstant 
public static const PAGE_PROGRESS:String = onPageProgress

is dispatched while web view is loading a web page. use

e.param
to 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_STARTEDConstant 
public static const PAGE_STARTED:String = onPageStarted

is dispatched as soon as web view has started to load a new page.

PAGE_STARTINGConstant 
public static const PAGE_STARTING:String = onPageStarting

is dispatched just before the web view starts to load a new page.

RECEIVED_MESSAGE_FROM_JSConstant 
public static const RECEIVED_MESSAGE_FROM_JS:String = fromJS

is dispatched as soon as JS tries to send String messages to flash.

RECEIVED_SSL_ERRORConstant 
public static const RECEIVED_SSL_ERROR:String = onReceivedSslError

is dispatched if there's an error while loading the page.

SCREENSHOTConstant 
public static const SCREENSHOT:String = onBitmap

is dispatched when the bitmapData object of the requested scrrenshot method requestBitmap() is ready.

TOUCHConstant 
public static const TOUCH:String = onTouch

Is dispatched as soon as you touch on the webview window in your app.