作者Allensph (彼苍者天)
看板Flash
标题[问题] html和Flash 呼叫javascript的结果不同?
时间Sun May 24 00:21:29 2009
Action Script 3
看过别的网页有做出来,想实现:
「在a.htm 的a.swf中按下某物件,开启b.htm至
全萤幕视窗(仅有网址列)」的效果。
a.flv中
function mylink(e:MouseEvent){
navigateToURL(new URLRequest("Javascript:fullsrc()"));
}
a.htm中
<script>
function fullsrc(){
window.open('main.html','new',
'width='+screen.availWidth+',
height='+screen.availHeight+',
resizable=no,scrollbars=no,toolbar=no');
}
</script>
问题:
Firefox环境下,用flash呼叫完全没有fullscreen,
只开了新分页,但如果用html的button onclick事件,
却可以实现「开新视窗」之全萤幕。
是我的javascript写错?还是flash呼叫方式错误?
请大家帮帮忙。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.73.245.127
※ Allensph:转录至看板 Ajax 05/24 00:22
※ 编辑: Allensph 来自: 203.73.245.127 (05/24 00:27)
2F:→ Allensph:原来js语法可以用string的方式写在fla里…… 05/24 03:23