Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Android - StageWebView - Loading PDF Bug - AIR 3.9

$
0
0

I think I've discovered another bug in AIR 3.9. Tested on Galaxy S4, and Nexus 7

 

When using the StageWebView on Android, PDFs will not load correctly. This works correctly on iOS and Desktop.

 

a Event.Complete event is dispatched, but all you ever see is a white square with Zoom buttons on the bottom right.

 

Has anyone else ever experienced this?

 

<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

               applicationComplete="init()"

               xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">   

    <fx:Script>

        <![CDATA[

            import spark.components.Application;

           

            public function init():void{

                this.stage.scaleMode = StageScaleMode.NO_SCALE;

                this.stage.align = StageAlign.TOP_LEFT;

               

                var webView:StageWebView = new StageWebView();

                webView.stage = this.stage;

                webView.viewPort = new Rectangle(50,50,this.stage.stageWidth-100, this.stage.stageHeight-100);

                webView.addEventListener(Event.COMPLETE, this._onLoadComplete);

                webView.loadURL("http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air4-0_fla shplayer12-0_releasenotes.pdf");

            }

            private function _onLoadComplete($event:Event):void{

                trace("COMPLETE");

            }

        ]]>

    </fx:Script>

</s:Application>


Viewing all articles
Browse latest Browse all 2010

Trending Articles



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