問題描述
可以從 web 視圖中的鏈接觸發我的 Air 應用程序中的操作嗎? (It's possible to trigger an action in my Air app, from a link in a webview?)
我正計劃為客戶創建一個桌面應用程序,它基本上是一個 web 視圖(顯示一些只能在此應用程序中訪問的頁面)和兩個小部件。
但是這個頁面需要有幾個鏈接/按鈕,這些鏈接/按鈕會在應用程序中觸發一些事件(顯然是在 web 視圖之外),調用小部件。有可能的?怎麼做?
我做了一些研究,但沒有找到任何資源。提前致謝!
參考解法
方法 1:
You can use JavaScript to call Action Script 3 (and also you can call JS methods from AS3) methods using ExternalInterface (http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204‑7cb2.html).
(by Marcelo Assis、Timur Koshel)