使用 SWFAddress 修改基本 url
关于在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 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!