主题:  有没办法禁掉所有的按钮功能,

5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
#12002/1/25 18:44:30
有没办法禁掉所有的按钮功能,
我是要在退出时询问是否退出(不用alert),弹出来个框,但其它的按钮都不能用
我的设想:
global aa
on startMovie
aa=0
end
在退出按钮上写以下lingo
global aa
on mouseUp me
set aa=1
end
其它按钮
global aa
--property aa
on mouseUp
if aa=1 then
pass
else
go to frame 10
end if
end
on mouseEnter
if aa<>0 then
pass
end if
end
on mouseWithin
if aa<>0 then
pass
end if
end

不过要写得好累哦,帮我


閑闪互动多媒体

marker

职务:普通成员
等级:1
金币:0.0
发贴:65
#22002/1/27 20:21:04
弹出的对话框可以用MIAW,并使这个MIAW的modal=1。



5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
#32002/1/28 9:53:20
可否给个例子看看


閑闪互动多媒体

marker

职务:普通成员
等级:1
金币:0.0
发贴:65
#42002/1/28 10:50:34
实现非常简单,我尽量说清楚吧:

把你要显示的确认对话框做成一个EXITD.DIR文件舞台尺寸小,上面有两个按钮"退出"、“返回” 。退出按牛上写
on mouseUp me
quit()
end
返回上写
on mouseUp me
mywindow=window (the moviepath&"exitd.dir")
forget mywindow
end

你的主程序上的退出按钮上写
on mouseUp me
mywin=window(the moviePath&"exitd.dir")
mywin.modal=1
mywin.windowtype=1
open mywin
end



5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
#52002/1/28 11:26:33
谢谢,可以实现了,那我如何设置窗体的位置,我想将它设置为半透明的,如何做到呢,或将本movie设置为透明

编辑历史:[这消息被snowypeng编辑过(编辑时间2002-01-28 12:02:19)]

閑闪互动多媒体

5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
#62002/1/28 12:08:15
位置搞定了,但我想设置为半透明,咋办
xPos = the stageLeft
yPos = the stageTop
bPos = the stagebottom
rpos = the stageRight
windowH = 800
windowV = 600
mywin=window "exit"
mywin=window(the moviePath&"exit.dir")
mywin.rect = rect(xpos, ypos,xPos+800,yPos+600)
mywin.modal=1
mywin.windowtype=1
open mywin


閑闪互动多媒体

marker

职务:普通成员
等级:1
金币:0.0
发贴:65
#72002/1/28 14:04:03
可以添加一个你喜欢的颜色的位图精灵,遮住整个舞台或窗口,BLEND=50



5D荣誉斑竹

职务:普通成员
等级:4
金币:13.0
发贴:1504
#82002/1/28 15:12:59
不行,我调进来的exit盖住了原来的movie


閑闪互动多媒体

marker

职务:普通成员
等级:1
金币:0.0
发贴:65
#92002/1/28 16:35:38
在主程序退出按钮:
on mouseUp me
……
sprite(x).puppet=1
sprite(x).member=member("bmp")
sprite(x).blend=50
sprite(x).rect=(the stage).rect
open window "……"
end

在MIAW的返回按钮:
on mouseUP me
tell the stage
sprite(x).puppet=false
end tell
forget window "……"
end

一切元素都可以用LINGO来控制,MIAW和STAGE可以互相通信。

编辑历史:[这消息被marker编辑过(编辑时间2002-01-28 16:37:09)]