Flash 导航URL不起作用

Flash 导航URL不起作用,flash,navigatetourl,Flash,Navigatetourl,我使用这个代码很长时间了。它工作得很好。现在,我制作了PHP5.4。它会保存图片,但不会转到网站daten.php。当我点击save时,只保存图片,不保存其他内容 var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream"); //Create the thumbnail file name var dotLoc:Number = currentImag

我使用这个代码很长时间了。它工作得很好。现在,我制作了PHP5.4。它会保存图片,但不会转到网站daten.php。当我点击save时,只保存图片,不保存其他内容

var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");       
//Create the thumbnail file name
var dotLoc:Number = currentImageName.lastIndexOf(".");
var prefix = currentImageName.substr(0, dotLoc);
var ext = currentImageName.substr(dotLoc);
var thumbName = prefix + "_thumb" + ext;

// Send the data out to PHP to be saved
var jpgURLRequest:URLRequest = new URLRequest ("http://www.domain/datei.php?name=" + thumbName);
jpgURLRequest.data = jpgData;
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
var jpgURLLoader:URLLoader = new URLLoader();       
jpgURLLoader.addEventListener(Event.COMPLETE, saveComplete);
jpgURLLoader.load(jpgURLRequest);
navigateToURL(jpgURLRequest,"_blank")

如果我理解正确,数据会保存在服务器上,但navigateToURL()不起作用?我听说Chrome浏览器中存在一些与此相关的问题,还有一些弹出窗口阻止程序可能会阻止navigateToURL()

现在最好通过ExternalInterface使用JavaScript打开新页面(当然,它只能在浏览器中工作,而不能在独立的flash player中工作,用户必须在浏览器中启用JavaScript,这是默认设置):


您的对象嵌入有问题-此嵌入似乎适合我(在Chrome中测试):



不允许运行脚本和活动内容,也不允许运行Adobe Flash Player版本
未安装11.4.0或更高版本。


是数据(jpg)已保存,但datei.php未加载。我尝试使用这个外部接口。调用(“window.open”,“+thumbName”,“u blank”);但没什么区别。你确定不是弹出窗口拦截器阻止了它吗?navigateToURL()是否在独立flash播放器中工作(不在浏览器中)?另外,再次尝试使用navigateToURL(),并在swf嵌入参数中将allowScriptAccess设置为“始终”。感谢您的帮助。我发疯了,因为我不能在它起作用之前停下来。它在safari浏览器中工作。我现在也测试了这个,您可以在这里看到我的“唯一的safari工作示例”:
ExternalInterface.call("window.open", "http://www.domain/datei.php?name=" + thumbName, "_blank");
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="TestActionScript">
    <param name="movie" value="ThumbCreator.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="ThumbCreator.swf" width="100%" height="100%">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
    <!--<![endif]-->
    <!--[if gte IE 6]>-->
    <p> 
        Either scripts and active content are not permitted to run or Adobe Flash Player version
        11.4.0 or greater is not installed.
    </p>
    <!--<![endif]-->
        <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
        </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
</object>