• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Open PDF file into flex mobile app

New Here ,
Feb 10, 2014 Feb 10, 2014

Copy link to clipboard

Copied

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>

Views

735

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines