在Flex移动项目中运行Javascript

Run Javascript in Flex Mobile Project

本文关键字:运行 Javascript 项目 Flex 移动      更新时间:2023-09-26

从我所看到的来看,大多数在Flex中使用Javascript的例子都是为完整的桌面版本(或浏览器)设计的,而不是Flex移动版。

例如,在Flex移动项目中使用ExternalInterface会给出错误:

Error: Error #2067: The ExternalInterface is not available in this container. 
ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and 
greater, or other browsers that support NPRuntime.

Q。是否有可能在Flex移动项目中调用Javascript(如Google Maps Javascript API) ?

你可以在由StageWebView组件加载的html(本地或远程)中使用javascript函数。通过URL: index.html传递任何你想要的参数?

手机配置文件不支持ExternalInterface