主题:  如何按空格进入下一桢

8gg

职务:普通成员
等级:1
金币:0.0
发贴:4
注册:2001/11/7 10:56:09
#12001/11/12 18:43:37
但我想通过按空格进入下一桢,不知道应该怎么写。

奇怪的是我用下面的语句,希望按“a"或“enter"进入下一桢,也不行。

on keydown
if the key = RETURN then go to frame 2
if the key = "a" then go to frame 2

end


但是用下面语句,通过点鼠标进入下一桢就可以。
on mouseDown me
go to frame 2

end



问题女士



愁眉不展

职务:普通成员
等级:1
金币:0.0
发贴:114
注册:2000/12/21 16:27:18
#22001/11/12 19:54:49
如果是在创作环境下要注意舞台必须是激活的窗口。



worthy

职务:普通成员
等级:1
金币:0.0
发贴:98
注册:2001/2/9 17:09:14
#32001/11/12 21:14:39
你试试
on keyDown
if the key=RETURN then go the frame+1
if the key="a" then go the frame+1
end
如果成功那就是你的当前帧为第二帧,所以你跳的一直是第二帧。
另外,这段程序应放在帧脚本上。



5min

职务:普通成员
等级:1
金币:0.0
发贴:82
注册:2001/1/26 11:39:16
#42001/11/12 21:18:16
用下面的movie script:

on keyDown me
if the keycode = 49 then go to the frame+1
end



worthy

职务:普通成员
等级:1
金币:0.0
发贴:98
注册:2001/2/9 17:09:14
#52001/11/12 21:41:34
那不太好,每一次按那个键都会向下跳一帧!