Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Loading a StageWebView shows up blank on my iDevice

$
0
0

I'm developing an iOS app on Animate CC. I tried using StageWebView class within the app in order to display a webpage but despite all my efforts on following the documents to the letter I was unable to view the webpage neither on my iPad nor on my iPhone. It works perfectly fine on AIR debug launcher (test movie) but when I run it on either of the devices, all I see is a blank white rectangular. I wonder whether this class has no iOS support or there is some other reason. I would be pleased if someone could assist me on this matter.

 

Code:

 

import flash.net.URLRequest;

import flash.media.StageWebView;

import flash.geom.Rectangle;

 

var webView:StageWebView;

               

click_openWeb.addEventListener(MouseEvent.CLICK, click_openWeb);

function click_openWeb(event:MouseEvent):void

{

        if(webView!=null){

        return;

        }

            

     webView=new StageWebView();

     webView.stage=this.stage;

     webView.viewPort=new Rectangle(0, 200, stage.stageWidth, 400);

     webView.loadURL("http://google.com");

}

 

closeWeb.addEventListener(MouseEvent.CLICK, click_closeWeb);

function click_closeWeb(event: MouseEvent): void {

        if(webView==null){

        return;

        }

 

     webView.viewPort=null;

     webView.dispose();

     webView=null;

}


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>