Skip navigation
moi78690
Currently Being Moderated

Open PDF file into flex mobile app

Feb 10, 2014 10:31 AM

Tags: #problem #error #pdf #adobe #flash #flash_builder #flex #application #iphone #android #mobile #ios #mobile_project #builder #flash_builder_4.5 #4.6

Hy,

I use this method to open a web page into my flex mobile application and I want to now if is possible to make the same for an PDF file.

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

xmlns:s="library://ns.adobe.com/flex/spark" title="Test">  

<fx:Script>

<![CDATA[

import flash.net.URLRequest;

import flash.net.navigateToURL;

import flash.display.MovieClip;

import flash.media.StageWebView;

import flash.geom.Rectangle;

import flash.events.KeyboardEvent;

import flash.ui.Keyboard;

import flash.desktop.NativeApplication;

import mx.events.FlexEvent;

private var browser:StageWebView;


protected function onButtonClicked(event:MouseEvent):void {

browser = new StageWebView();

browser.viewPort = new Rectangle(0, 0, 100, 200);

browser.stage = this.stage;

browser.loadURL("http://adobe.com"); } 

]]>

</fx:Script>

<s:Button x="209" y="67" label="test" click="onButtonClicked(event)" />

</s:View>

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points