【发布时间】: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