Flex 4.5 中 HTMLLoader 的 navigatorInSytemBrowser
我正在开发 Flex 4.5 SDK 并为我的 Flex/AIR 桌面应用程序使用 Flash Builder 4 IDE。
在我的项目中,我想在画布区域之一加载一个 html 页面。我正在使用 HTMlLoader 加载我的页面。我的网页在画布区域中成功加载。
问题是,当我单击已加载的 html 页面中嵌入的链接时,它们不会在我的浏览器窗口中打开。
HTMlLoader 有一个属性“navigateInSystemBrowser”,需要将其设置为 true 以允许在默认浏览器窗口中打开页面的嵌入链接。但此属性仅在 Flex 4.0 中有效 我尝试使用 Flex 4.0 作为 SDK 运行相同的示例项目,并且它工作得很好。但是当我使用 Flex 4.5 SDK 时它不起作用。
请建议是否有任何其他解决方法可以实现此目的。
谢谢, 尼蒂卡
I am working on Flex 4.5 SDK and using Flash Builder 4 IDE for my Flex/AIR Desktop Application.
In my project I want to load one html page in one of the canvas areas. I am using HTMlLoader to load my page. My web page loads successfully in the canvas area.
The problem is that when I click on the links embeded in the html page that I have loaded, they do not open in my browser window.
There is a property of HTMlLoader "navigateInSystemBrowser" which need to be set to true to allow the embeded links of the page to open in a default browser window. But this property works only in Flex 4.0 I tried running the same thing a sample project using Flex 4.0 as the SDK and it works perfectly fine. But when I work with Flex 4.5 SDK it does not works.
Please suggest if there any other workaround to achieve this.
Thanks,
Nitika
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flex 4.5 SDK 有一些粗糙的地方,它仍处于测试阶段,所以使用它也许不是一个明智的决定。几天前也遇到了类似的问题,嵌入式资源在 Flex Hero SDK 中无法工作,但在 4.1 中可以工作。在我几乎放弃之后,决定尝试最新的夜间构建,到目前为止它正在工作,但奇怪的更长的编译时间现在是我的问题。
因此,首先您可以尝试最新的 4.5 SDK,如果没有,您应该回退到 4.1,除非您依赖 4.5 功能。
Flex 4.5 SDK have some rough edges, it's still in beta, so maybe it's not a wise decision to use it yet. Few days ago had similar issue, embedded resources didn't worked in Flex Hero SDK, but they were working in 4.1. After I almost gave up decided to try latest night build and so far it's working, tho strange longer compilation times are now my issue.
So first you may try latest 4.5 SDK, if not you should fall back to 4.1, unless you are depending on 4.5 features.