Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The StageWebView allows for web (HTML and Flash on supported devices) and video content to be loaded into a Flex application. StageWebView will utilize the native browser to load HTML into your application.
Let’s review the code below. First, you will notice there is a private variable named stageWebView declared, of type flash.media.StageWebView. Within applicationComplete of the application, an event handler function is called, which first checks to see if the device supports StageWebView by reading the static property of the StageWebView class. If this property returns as true, a new instance of StageWebView and a new Rectangle (sized to fill the remaining screen and set to the viewport property of the stageWebView) are created.