Rendering a web page within an app
Since AIR 2.6, it has been possible to load and display HTML content directly within an AIR for iOS app. This is convenient as it prevents the user from having to leave the app to view web pages. It also provides other benefits such as tighter OAuth (Open Authorization) integration, and the ability to include HTML banner ads.
This recipe will show you how to load a remote web page directly into your app.
Getting ready
The steps covered here are only applicable to those using Flash Professional CS5.5 and AIR 2.6 or above. The AIR 2.0 SDK does not provide an API for loading HTML within an app.
From the book's accompanying code bundle, open chapter11\recipe2\recipe.fla
into Flash Professional CS5.5. The FLA's stage ...
Get Flash iOS Apps Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.