私はFlexアプリケーションをhtmlLoaderでAIRにロードしました。 Flexアプリケーションは、クリックするとnavigateToURL(...)を呼び出し、新しいブラウザウィンドウを表示するリンクを表示します。この機能はFlexアプリケーションで動作しますが、AIRでラップされても機能しません。Adobe AIRラッパーに含まれるFlexアプリケーションからToHRLをナビゲートするにはどうすればよいですか?
0
A
答えて
0
私は解決策が見つかりました:
htmlLoader.navigateInSystemBrowser =真;
外部リンクは、読み込まれたHTMLページからクリックすると新しいブラウザが開きます。
0
ディスクからflexアプリケーションをロードしていますか? Local-with-file sandbox
にある可能性があります。
はこれを見ている:http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7cba.html
は、ここで上記の文書リンクからの抜粋です。
Home/ActionScript 3.0 Developer’s Guide/Networking and communication/HTTP communications
Opening a URL in another application
Flash Player 9 and later, Adobe AIR 1.0 and later
You can use the navigateToURL() function to open a URL in a web browser or other application. For content running in AIR, the navigateToURL() function opens the page in the default system web browser.
For the URLRequest object you pass as the request parameter of this function, only the url property is used.
The first parameter of the navigateToURL() function, the navigate parameter, is a URLRequest object (see Using the URLRequest class). The second is an optional window parameter, in which you can specify the window name. For example, the following code opens the www.adobe.com web page:
var url:String = "http://www.adobe.com";
var urlReq:URLRequest = new URLRequest(url);
navigateToURL(urlReq);
Note: When using the navigateToURL() function, the runtime treats a URLRequest object that uses the POST method (one that has its method property set to URLRequestMethod.POST) as using the GET method.
When using the navigateToURL() function, URI schemes are permitted based on the security sandbox of the code calling the navigateToURL() function.
Some APIs allow you to launch content in a web browser. For security reasons, some URI schemes are prohibited when using these APIs in AIR. The list of prohibited schemes depends on the security sandbox of the code using the API. (For details on security sandboxes, see AIR security.)
Application sandbox (AIR only)
Any URI scheme can be used in URL launched by content running in the AIR application sandbox. An application must be registered to handle the URI scheme or the request does nothing. The following schemes are supported on many computers and devices:
http:
https:
file:
mailto: — AIR directs these requests to the registered system mail application
sms: — AIR directs sms: requests to the default text message app. The URL format must conform to the system conventions under which the app is running. For example, on Android, the URI scheme must be lowercase.
navigateToURL(new URLRequest("sms:+15555550101"));
tel: — AIR directs tel: requests to the default telephone dialing app. The URL format must conform to the system conventions under which the app is running. For example, on Android, the URI scheme must be lowercase.
navigateToURL(new URLRequest("tel:5555555555"));
market: — AIR directs market: requests to the Market app typically supported on Android devices.
navigateToURL(new URLRequest("market://search?q=Adobe Flash"));
navigateToURL(new URLRequest("market://search?q=pname:com.adobe.flashplayer"));
Where allowed by the operating system, applications can define and register custom URI schemes. You can create a URL using the scheme to launch the application from AIR.
Remote sandboxes
The following schemes are allowed. Use these schemes as you would use them in a web browser.
http:
https:
mailto: — AIR directs these requests to the registered system mail application
All other URI schemes are prohibited.
Local-with-file sandbox
The following schemes are allowed. Use these schemes as you would use them in a web browser.
file:
mailto: — AIR directs these requests to the registered system mail application
All other URI schemes are prohibited.
Local-with-networking sandbox
The following schemes are allowed. Use these schemes as you would use them in a web browser.
http:
https:
mailto: — AIR directs these requests to the registered system mail application
All other URI schemes are prohibited.
Local-trusted sandbox
The following schemes are allowed. Use these schemes as you would use them in a web browser.
file:
http:
https:
mailto: — AIR directs these requests to the registered system mail application
All other URI schemes are prohibited.
関連する問題
- 1. Adobe AIRアプリケーションからHDCまたはScreenShotを入手するにはどうすればよいですか?
- 2. Adobe Air PlayerなしでAdobe AIRアプリケーションを実行するにはどうすればよいですか?
- 3. Adobe AIRアプリケーションのネイティブMacインストーラファイルを作成するにはどうすればよいですか?
- 4. Adobe Flexから日付オブジェクトをRESTfulなレールに送るにはどうすればよいですか?
- 5. AS3/Flex/Adobe AIRアプリケーションのストリーミングパーサー(JSON/XML)
- 6. Adobe AIRのネイティブコンテキストメニューにアイテムを非同期で追加するにはどうすればよいですか?
- 7. Adobe AIRパッケージャはどのように動作しますか?
- 8. Adobe Air(Flex)with Ajax
- 9. Adobe AIRでファイルのフルネームを取得するにはどうすればよいですか?
- 10. Adobe Air/Flashでビデオをエンコードするにはどうすればよいですか?
- 11. Adobe Flex/AirはRails 3.2と協議していますか?
- 12. Adobe AIRクライアント側とJava VMデバッグインタフェースを接続するにはどうすればよいですか?
- 13. Adobe AIRのタイトルバーアイコンを変更するにはどうすればよいですか?
- 14. Adobe Air(FlexまたはHtml)アプリケーションアーキテクチャ
- 15. Adobe AIRインストーラ自体にはどのようにAIRが必要ですか?
- 16. Adobe FlexでPDFを表示するにはどうすればよいですか?
- 17. Adobe Airのロックスクリーンプレーヤーコントロールと統合するにはどうすればよいですか?
- 18. Adobe AIRとiPhone - どのように動作しますか?
- 19. Adobe Flexの画像URLをデータベースのデータとバインドするにはどうすればよいですか?
- 20. Adobe AirアプリケーションをAdobe Airをインストールしていないコンピュータに送信するとどうなりますか?
- 21. Adobe AIRアプリケーションを、ポータブルアプリケーションとして実行可能な単一のファイルにランタイムを含めて配置するにはどうすればよいですか?
- 22. Adobe Air Mobile、FlexおよびActionscript 3:私のすべてのビューでアクションバーの高さを変更するにはどうすればよいですか?
- 23. Adobe AIRにはリモートファイルは含まれません!
- 24. Adobe AIR、Flex 4 - 右クリックでContextMenuが表示されない
- 25. Adobe AirはMacとiPhoneアプリケーションに最適なソリューションですか?
- 26. Adobe Flex/AIRの開発ツールですか?
- 27. Adobe AirからWindowsのレジストリにアクセスできますか?
- 28. Adobe AirからWindowsプログラムを実行するには?
- 29. Adobe AIRにAdobe AIR
- 30. Adobe Flex/Air ServerSocket:ソケットソケットクラスからのリモート接続
私はローカルのweblogicサーバーを通じてFlexアプリケーションを実行しています。それはファイル付きのローカルサンドボックス内でも考慮されるでしょうか? – Justin
すべての環境で許可されているmailto:を使ってみましたが、navigateToUrlのウィンドウが "_self"に設定されている場合にのみ開きます。 "_blank"に設定されていると、新しいブラウザウィンドウが表示されないときに開きます。また、デフォルトのブラウザの設定を確認し、新しいタブの代わりにデフォルトで新しいウィンドウが開かれるようにしました。 – Justin
githubや何かに簡単なデモを投げることができるなら、私はそれを見てみましょう。 – Clintm