Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/420.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Firefox插件开发和在xul中嵌入.swf和html:embed_Javascript_Html_Flash_Firefox_Xul - Fatal编程技术网

Javascript Firefox插件开发和在xul中嵌入.swf和html:embed

Javascript Firefox插件开发和在xul中嵌入.swf和html:embed,javascript,html,flash,firefox,xul,Javascript,Html,Flash,Firefox,Xul,我的firefox插件有一个大问题。我有一个按钮,它为我打开了一个新窗口,我想在其中包含.swf文件 以下是用于嵌入的XUL代码: <html:embed src="Reader.swf" width="250" height="250" type="application/x-shockwave-flash" /> ->html命名空间已设置在上面: xmlns:html=”http://www.w3.org/1999/xhtml“ Reader.swf与xul文件位于同

我的firefox插件有一个大问题。我有一个按钮,它为我打开了一个新窗口,我想在其中包含.swf文件

以下是用于嵌入的XUL代码:

<html:embed src="Reader.swf" 
width="250" 
height="250"
type="application/x-shockwave-flash" />

->html命名空间已设置在上面:
xmlns:html=”http://www.w3.org/1999/xhtml“

Reader.swf与xul文件位于同一目录中

如果没有html:embed,窗口将毫无问题地打开,但是一旦我更改了它,firefox就会在没有警告或其他什么的情况下崩溃,它只是从进程栏中消失

当我从我的操作系统(Windows7 64位)打开.swf文件时,它可以正常工作,并且用as3编码


有人能帮我吗?

与其将swf文件直接放在新窗口中,不如尝试将其包装在一个最小的html页面中。或者,您也可以使用flash在发布电影时为您生成的html页面。我没有使用XUL,但我注意到直接将swf文件放在浏览器中有点不一致。例如,一些浏览器会将电影缩放到可用窗口空间的100%,而其他浏览器则不会