使用 SWFAddress 修改基本 url

发布于 2024-10-07 19:47:00 字数 346 浏览 0 评论 0原文

关于在 Flash 中使用 SWFAddress 的问题

用户可以使用以下 url 访问我的网站:

www.abc.com/

假设当我加载 Flash 网站时, ?from=SOME_VALUE_HERE。 ?from=SOME_VALUE.. 被读取并且不再有用。

所以现在当我使用 SWFAddress.setValue("EXAMPLE") 时,

浏览器网址显示 www.abc.com/?from=SOME_VALUE_HERE#/EXAMPLE ,

这太难看了。

我希望网站可以显示 www.abc.com/#/EXAMPLE

可以吗?

a question abt using SWFAddress in Flash

Lets say it is possible for a user to reach my website using this url:

www.abc.com/?from=SOME_VALUE_HERE

when i my flash website is loaded. the ?from=SOME_VALUE.. is read and it is no longer useful.

So now when i use SWFAddress.setValue("EXAMPLE")

The browser url to shows www.abc.com/?from=SOME_VALUE_HERE#/EXAMPLE

which is damn ugly.

I hope the site can shows www.abc.com/#/EXAMPLE

Is it possible?

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

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

发布评论

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

评论(1

ゃ懵逼小萝莉 2024-10-14 19:47:00

您可以使用 JavaScript 捕获该地址并将您重定向到 www.abc.com/

您可以使用 ActionScript 与 javascript 进行通信,以使用诸如 window.location 之类的内容重置 url。

也许您也可以使用 PUT 而不是 GET 来发送 from 变量,这样可以防止它出现在 URL 中。

希望这有帮助!

You could use javascript to capture that address and redirect you to to www.abc.com/.

You could use ActionScript to communicate to javascript to reset the url using something like window.location

Perhaps you could also send the from variable using PUT instead of GET which would keep it from appearing in the URL.

Hope that's helpful!

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