2014-02-07 103 views
0

海兰打开一个PDF文件,在Flex应用程序移动

我用这个方法来打开一个网页到我的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)" /> 

回答

相关问题