ActionScript3:如何获取放置swf的页面的真实url?
所以我尝试了
var url:String = String(this.loaderInfo.url);
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_self'); // second argument is target
} catch (e:Error) {
ErrorButton.label = "Please refresh page manually"
}
and
var url:String = String(this.loaderInfo.loaderURL);
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_self'); // second argument is target
} catch (e:Error) {
ErrorButton.label = "Please refresh page manually"
}
和 FlexGlobals.topLevelApplication.url 但它都给出了相同的 =(
但 thay bouth 返回我到 http://127.0.0.1/w2/window.swf
而我有 url http://127.0.0.1/w2/window.php?action=read#1
。那么我该怎么做才能接收真正的完整链接 - 而不是 swf 链接?
So I tried
var url:String = String(this.loaderInfo.url);
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_self'); // second argument is target
} catch (e:Error) {
ErrorButton.label = "Please refresh page manually"
}
and
var url:String = String(this.loaderInfo.loaderURL);
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_self'); // second argument is target
} catch (e:Error) {
ErrorButton.label = "Please refresh page manually"
}
and FlexGlobals.topLevelApplication.url but it all gives same=(
but thay bouth return me to http://127.0.0.1/w2/window.swf
while I had url http://127.0.0.1/w2/window.php?action=read#1
. I use flash builder. So what shall I do to recive real full link - not swf link?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
怎么样
What about