主题:  请教高手、版主!Esc键的获取!

xiaodong

职务:普通成员
等级:1
金币:0.0
发贴:94
注册:2001/6/13 16:55:51
#12001/6/28 13:47:29
请教,Esc键怎样用作指令用。即按一下esc后可执行一段程序,其实就是怎样获取ESC键。(我曾见过一光盘,按一下esc键就回到主界面了。



zwjn

职务:普通成员
等级:1
金币:0.0
发贴:110
注册:2000/12/7 9:29:52
#22001/6/29 10:06:46
首先要把ESC的默认功能屏蔽掉
set the exitLock to true
把它放在每一个影片的startMovie处

然后就可以监测keyDown 事件,
on keyDown me
if the keyCode=53 then --Esc键的键值
XXXX
end if
end



yjh

职务:普通成员
等级:1
金币:0.0
发贴:97
注册:2000/9/22 22:36:13
#32001/6/29 10:09:52
on exitFrame me
go to the frame
set the exitlock to true --关闭使用ESC退出
end

on keyDown
if the keyCode = 53 then go to marker(1)--跳到下一个标记帧
end



xiaodong

职务:普通成员
等级:1
金币:0.0
发贴:94
注册:2001/6/13 16:55:51
#42001/6/29 10:22:25
真是非常非常感谢大家了,谢谢!