如何强制在本地域上加载 Flex 应用程序?

发布于 2024-08-17 13:40:15 字数 111 浏览 0 评论 0原文

我遇到了需要从域加载 swf 的情况。目前,我的 Flex 设置总是从文件加载 SWF//...

我希望域为 local.somedomain.com

有谁知道如何执行此操作?

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file//...

I would prefer the domain to be local.somedomain.com

Does anyone know how to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

镜花水月 2024-08-24 13:40:15

创建一个具有对象标记的简单 html 页面并从那里加载它。它将从加载 html 页面的同一域加载。

当您点击 Flex Builder 中的调试按钮时,您实际上正在运行一个 html 页面(位于名为 index.template.html 的 html 模板文件夹中)。如果您在导航器中右键单击该项目并单击属性,然后单击运行/调试设置,您可以编辑“启动配置”并告诉它要加载哪个页面(在这里,您可以将调试或运行路径修改为url 而不是文件夹路径)。

Create a simple html page that has the object tag and load it from there. It will load from the same domain the html page is loaded from.

When you hit the debug button in Flex Builder, you are actually running an html page (its in the html-template folder called index.template.html). If you right click the project in the navigator and click properties, then click run/debug settings, you can edit a "launch configuration" and tell it what page to load (here, you can just modify the debug or run path to be a url instead of a folder path).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文