Skip to main content
Known Participant
September 6, 2018
Question

AIR for Desktop - StageWebView only display partial HTML content

  • September 6, 2018
  • 1 reply
  • 1110 views

Hi,

I publish an AIR for Desktop Windows application from an AIR for iOS FLA file. The app downloads HTML content files from the server, and uses stageWebView to display the HTML content locally. The stageWebView works well to display the HTML content with lots of <div> and layers, but in the desktop version, it shows the HTML background image, but does not display certain <div> that need to show up.

Is it a HTML issue? or an AIR webkit issue?

What needs to be done to make HTML to work cross-platform in AIR?

Thank you for any advice/insights.

This topic has been closed for replies.

1 reply

KramSurfer2
Inspiring
September 10, 2018

As of release 28, Air on iOS uses the latest iOS browser and hence renders content properly.

Air on Windows desktop defaults to an embedded Web Browser which is a WebKit version from 2012 or so.  It does not render current web standards. 


You can try adding ( true ) to your stageWebView instance at creation and it might use the default browser.

var swv = new StageWebView( true );

StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference

yufuairAuthor
Known Participant
September 19, 2018

I've tried using StageWebView(true) but it does not change anything.... Adobe should look into updating the desktop version up to date with current web standards, for example, using Chrome webkit.

KramSurfer2
Inspiring
September 19, 2018

Yeah, an update to the web browser has been on the wish list since 2014 or so.

You can try to impliment this.  I have not yet, but may try soon.  I see it was updated 8 days ago! 

GitHub - tuarua/WebViewANE: WebView Adobe Air Native Extension for OSX 10.10+, Windows Desktop, iOS 9.0+ and Android 19+…