查看: 1201|回复: 7
|
请个位高手帮帮忙 (Flash MX2004)
[复制链接]
|
|
请问如何在 flash mx2004 里把按button 了然后开popup 出来,我要的是小popup。
开个普通window:
on (release) {
getURL("http://www.cari.com.my", "_blank" ;
}
这没问题。
但要怎么开小window 呢?试过一下,可是不行:
on (release) {
javascript penNewWindow('test.html','thewin', 'height=200,width=250,toolbar=no,scrollbars=no')
}
快来帮帮忙。谢谢!
下次請自行放標簽。謝謝合作。
[ 本帖最后由 hahabin 于 30-9-2005 02:52 AM 编辑 ] |
|
|
|
|
|
|
|
发表于 27-9-2005 12:11 PM
|
显示全部楼层
你漏了getURL,
on (release) {
getURL("javascript:window.open('test.htm','newWin','height=200*,width=300*,toolbar=0,menubar=0,location=0,scrollbars=0,resizable=0')");
} |
|
|
|
|
|
|
|

楼主 |
发表于 29-9-2005 02:54 AM
|
显示全部楼层
原帖由 邪灵 于 27-9-2005 12:11 PM 发表
你漏了getURL,
on (release) {
getURL("javascript:window.open('test.htm','newWin','height=200*,width=300*,toolbar=0,menubar=0,location=0,scrollbars=0,resizable=0')" ;
}
太棒了,行啦!真是谢谢你啊邪灵,我有要继续我的工作了,有问题一定会发问问了。呵呵!
坛主要给邪灵加分哦! |
|
|
|
|
|
|
|

楼主 |
发表于 5-10-2005 02:39 AM
|
显示全部楼层
今天试在另一个file 就不行了,browser 跳出来然后又自动关掉了,这是什么原因呢? |
|
|
|
|
|
|
|
发表于 5-10-2005 09:58 AM
|
显示全部楼层
新window 完全 close 掉, 还是minimize 了?
你的case会不会是你的page里有几个button, 当你按下其中一个button 时, 一个新的window 就会popup出来。 然后你将它minimize掉。过后你再按下另一个button时, 没有window popup, 是吗?
如果是的话,那是因为你将同一样的code用在不同的button上,而你只是改掉code 里的filename 而已。应该连code 里的 new window name也一起改掉。
不然两个不同的content会呈现在同一个window里。
window.open 的程式:
window.open(your file name, new window name, window properties)
如果是close掉的话, 那应该是你html file的问题了。。 |
|
|
|
|
|
|
|

楼主 |
发表于 5-10-2005 12:33 PM
|
显示全部楼层
是完全关掉,现在我试开个新file,然后做一个button,然后用你的action:
on (release) {
getURL("javascript:window.open('test.htm','newWin','height=200*,width=300*,toolbar=0,menubar=0,location=0,scrollbars=0,resizable=0')" ;
}
可以看到browser 一开了马上就再关掉。 |
|
|
|
|
|
|
|

楼主 |
发表于 5-10-2005 12:43 PM
|
显示全部楼层
啊!不好意思,行了。在.swf 里click button 是不能开到的,不过publish 出.html file 之后再run 那个.html file 就行,但还是有一点问题,在browser里按了button 小browser 果然开了,但原装的那个切变这:[object],然后adress 变成了:
javascript:window.open('http://www.test.net','newWin','height=200*,width=300*,toolbar=0,menubar=0,location=0,scrollbars=0,resizable=0')
为什么会这样呢? |
|
|
|
|
|
|
|
发表于 6-10-2005 02:43 PM
|
显示全部楼层
这个问题我没碰过。。 不如你upload上来 看看。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|