1. 首页
  2. 文档大全

Director向前或向后翻页控制脚本.doc

上传者:蓝天 2022-05-26 12:48:18上传 DOC文件 83 KB
Director向前或向后翻页控制脚本
Director controls the script add method by turning the page forward or backward:
The method realizes the page turning control of Director courseware with the left and right keys, up and down direction keys, PgUp and PgDn keys (the same as the common external control pen).
In addition, the space bar and the carriage return control the courseware to scroll down. Press the number 0 directly, the courseware will return to the original page, press the number keys 1 to 9, and the courseware will jump to the corresponding section. If there is no corresponding chapter, the courseware will not do any action.
1, add the following code at the first stop point:
Global, rightMouseClick, PgUpPress, UpPress
On exitFrame me
movie.go (movie, frame)
If Mouse. MouseDown then
movie.go (movie, frame+1)
Set RightMouseClick=0
Set PgUpPress=O
Set UpPress=O
End if
On, KeyDown ()
If ( key. keyCode = 121), or ( key.keyCode = 125), or ( key. keyCode = 36), or ( key. keyCode, =49), then
movie.go (movie, frame+1)
Set RightMouseClick =0
Set PgUpPress =0
Set UpPress =0
End if
Case ( Key. KeyCode) of
29:
If _movie. label ("Part。")< > 0 then
movie, go ("Part。")
18:
If _movie. label ("Parti") < > 0 then _movie. go ("Parti")
End if
19:
If _movie. label ("Part2”) < > 0 then
_movie. go ("Part2”)
End if
20:
If _movie. label ("Part3”) < > 0 then
_movie. go ("Part3〃)
End if
21:
If _movie. label ("Part4”) < > 0 then
_movie. go ("Part4”)
If _movie. label ("Part5”) < >
_movie. go (〃Part5”)
End if
22:
If _movie. label ("Part6”) < >
_movie. go ("Part6”)
End if
26:
If _movie. label ("Part7”) < >
_movie. go ("Part7”)
End if
28:
If _movie. label ("Part8”) < >
_movie. go ("Part8”)
then
then
then
then
If _movie. label ("Part9”) < > 0 then
movie, go ("Part9”)
End if
End case
End KeyDown
End
2. Add all the following code at all points in the future:
Global, Rig

文档来源:https://www.taodocs.com/p-690298425.html

文档标签:

下载地址