开发者

How to open pdf file using flash builder 4.5

How to read 开发者_Python百科and display a pdf file using flash builder 4.5 and as3 for iOS application??


i think the best solution would be to open it as a link in mobile safari.

navigateToUrl(new URLRequest('<pathToPdf>'));

have not coded AS for iOS so i hope the navigateToUrl method works.


package
{ 
   import flash.display.MovieClip; 
   import flash.media.StageWebView; 
   import flash.geom.Rectangle; 

   public class StageWebViewExample extends MovieClip
   { 
       var webView:StageWebView = new StageWebView(); 

       public function StageWebViewExample() 
       { 
           webView.stage = this.stage; 
           webView.viewPort = new Rectangle( 0, 0, stage.stageWidth,stage.stageHeight);
           webView.loadURL( "http://www.adobe.com" ); 
       } 
   }
}

StageWebView.

http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac3ef1d28412ac57b094b-8000.html

this won't work on Android 3 tablets. For activating any plugin (e.g., Flash or PDF) in the StageWebView you need to explicitly enable hardware acceleration in the description file. This part would be easy, but Flash CS 5.5 would not package your -app.xml since it checks against the Froyo lib and not the Honeycomb lib. Since the hardware accelartion is a feature of Honeycomb, it is unknown for CS5.5.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜