【问题标题】:Open a PDF file in a flex app mobile在 flex 应用程序移动设备中打开 PDF 文件
【发布时间】:2014-02-07 20:07:25
【问题描述】:

喂,

我使用这种方法在我的 flex 移动应用程序中打开一个网页,如果可以的话,我现在想为 PDF 文件做同样的事情。

<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://stackoverflow.com");
}       


]]>
</fx:Script>

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

【问题讨论】:

    标签: android apache-flex pdf adobe flex-mobile


    【解决方案1】:

    查看我们用于 FlexPaper 的 GPL 库。它包含在 Flex 移动应用程序中显示文档所需的一切。

    https://code.google.com/p/flexpaper/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-20
      • 1970-01-01
      • 1970-01-01
      • 2017-11-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多