2013-05-14 48 views
0

我寫的代碼顯示頁面像stagewebvie沒有在ipad

protected var swv:StageWebView = null; 
private var url:String = new String(stringnaveed.text); 
protected function view1_creationCompleteHandler(event:FlexEvent):void 
     { 
     // TODO Auto-generated method stub 
     if(StageWebView.isSupported == true) 
     {     
      swv = new StageWebView(); 
      swv.viewPort = new Rectangle(0,80,600,600); 
      swv.stage = this.stage; 
      swv.loadURL(url); 
     } 
    } 
<s:Label id="stringnaveed" text="http://www.formpfplus.com/AI/new_faq.htm" visible="false"> 

</s:Label> 

但是當我diploying此設備上它亙古不變的顯示任何

回答

0

的StageWebView不適用於iPad的,僅適用於Android。在黑莓手機上,你必須使用qnxstagewebview。

+0

我得到的解決方案,這裏是代碼:// import flash.filesystem; protected var counter:int = 0; var url:String = File.applicationDirectory.nativePath +'\\通過Angles.html識別三角形'protected function button1_clickHandler(event:MouseEvent):void {trace(url); webView.stage = stage; webView.viewPort =新的矩形(400,400,400,400); webView.loadURL(URL); } protected function view1_creationCompleteHandler(event:FlexEvent):void {// TODO自動生成的方法存根} – 2013-05-17 03:55:13