actionscript 3 - Adobe AIR StageWebView fail to show web page with javascript -


i'm trying write mobile app using adobe air shows web page.
want show web page , allow user browse it.

the problem when try i'm getting lots of javascript errors , page partially rendered in unreadable way.

i've tried pass true usenative ctor parameter didn't seem make difference.

is there way display html content web in adobe air without using ane?

you don't need ane allow users browse web page adobe air. using webview best, simple, popular way.

webview.stage = this.stage; webview.viewport = new rectangle(0, 0, stage.stagewidth, stage.stageheight); webview.loadurl("http://www.example.com"); 

your problem not actionscript code developed. it's page loading webview element. if page has javascript errors webview, has javascript errors using simple browser on mobile device (or on desktop). thus, passing true usenative not solve problem.

to solve problem, run app in debug mode , javascript errors in debug console. me, example, javascript command console.log function unrecognized webview , broke many parts of javascript execution in pages. go through each of javascript errors appearing , fix them, until page runs smoothly.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -