Rel*_*lla 0 flash mxml actionscript-3 flash-builder
所以我试过了
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"
}
Run Code Online (Sandbox Code Playgroud)
和
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"
}
Run Code Online (Sandbox Code Playgroud)
和FlexGlobals.topLevelApplication.url但它们都给出了相同的=(
但是http://127.0.0.1/w2/window.swf当我有网址时,我会把我送回去http://127.0.0.1/w2/window.php?action=read#1.我使用flash builder.那么我该怎么做才能获得真正的完整链接 - 而不是swf链接?
关于什么
var _url:String = flash.external.ExternalInterface.call("window.location");
Run Code Online (Sandbox Code Playgroud)