在浏览器的Flash AS3 CS6测试影片不工作 [英] Flash CS6 AS3 test movie in browser not working
问题描述
我有一个按钮使用FLAHS CS6 AS3链接网址。 当我在Flash Professional测试,(CNTL + Enter键),它的工作,但是当我测试在浏览器中(F12)的按钮不工作。 还当我打开swf文件就自我,它是不工作为好。 只有当它从FLA文件导出(使用CNTL + Enter键),而不是从文件夹中打开acutal swf文件的工作)
I have a button to link URL using Flahs CS6 AS3. When I test it in Flash Professional,(Cntl+Enter) it worked, but when I test in Browser (F12) the button is not working. also when I open swf file it self, it is not working as well. Only works when it export from Fla file (using Cntl+Enter), but not opening acutal swf file from the folder)
在code是这样的 - 我觉得这个是确定的,因为它的工作出口时(CNTL + Enter键)
the code is this - and I think this one is ok, because it working when exported (Cntl+Enter)
function gotoAuthorPage(event:MouseEvent):void
{
var targetURL:URLRequest = new URLRequest("http://www.google.com/");
navigateToURL(targetURL,"_self");
}
my_btn.addEventListener(MouseEvent.CLICK, gotoAuthorPage);
有谁知道为什么发生这种情况,我怎么可以让它在浏览器中工作,和SWF文件... 请大家帮忙!
Does anybody know why this happening and how can I make it work in browser, and swf file... please help!
感谢
推荐答案
在<大骨节病> CTRL 骨节病> + <大骨节病>输入骨节病>从Flash,您的SWF正在执行的投影机。
When you ctrl+enter from Flash, your SWF is executing in projector.
请确保您的发布设置启用从网络访问的本地回放安全的:
Make sure your publish settings enable network access from "local playback security":
这篇关于在浏览器的Flash AS3 CS6测试影片不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!