director向前或向后翻页控制脚本

director向前或向后翻页控制脚本

ID:31707770

大小:69.83 KB

页数:10页

时间:2019-01-17

director向前或向后翻页控制脚本_第1页
director向前或向后翻页控制脚本_第2页
director向前或向后翻页控制脚本_第3页
director向前或向后翻页控制脚本_第4页
director向前或向后翻页控制脚本_第5页
资源描述:

《director向前或向后翻页控制脚本》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、Director向前或向后翻页控制脚本Directorcontrolsthescriptaddmethodbyturningthepageforwardorbackward:ThemethodrealizesthepageturningcontrolofDirectorcoursewarewiththeleftandrightkeys,upanddowndirectionkeys,PgUpandPgDnkeys(thesameasthecommonexternalcontrolpen)・Inaddition,thespacebaran

2、dthecarriagereturncontrolthecoursewaretoscrolldown.Pressthenumber0directly,thecoursewarewillreturntotheoriginalpage,pressthenumberkeys1to9,andthecoursewarewilljumptothecorrespondingsection.Ifthereisnocorrespondingchapter,thecoursewarewillnotdoanyaction.1,acidthefollowin

3、gcodeatthefirststoppoint:Global,rightMouseClick,PgUpPress,UpPressOnexitFramememovie.go(movie,frame)IfMouse.MouseDownthenSetRightMouseClick=0SetPgUpPress二0SetUpPress=OEndifOn,KeyDown()If(_key・keyCode二121),or(_key・keyCode二125),or(_key.keyCode二36),or(key.keyCode,=49),then_

4、movie・go(_movie・frame+1)SetRightMouseClick=0SetPgUpPress二0SetUpPress=0EndifCase(_Key.KeyCode)of29:Ifjnovie.label(,,PartO,/)<>0thenEndifIfmovie・1abel(z/Partlz/)<>0then_movie・go(〃Partl〃)Endif19:Ifjnovie.label(,,Part2,/)<>0then_movie・go(,,Part2,/)Endif20:Ifjnovie.label(,,P

5、art3,/)<>0then_movie・go(〃Paxt3〃)Endif21:If_movie.label(,/Part4,/)<>0then23:Ifmovie,label("Part5〃)<>_movie・go(,,Part5,/)Endif22:Ifjnovie.label(,,Part6,/)<>_movie・go(,,Part6,/)Endif26:Ifjnovie.label(,,Part7,/)<>jnovie・go(,,Part7,/)Endif28:Ifjnovie.label(,,Part8,/)<>jnovie

6、・go(,,Part8,/)thenthenthenthen25:Ifjnovie.label(,,Part9,/)<>0then_movie・go(,,Part9,/)EndifEndcaseEndKeyDownEndthefuture:2.AddallthefollowingcodeatallpointsinGlobal,RightMouseClick,PgUpPress,UpPressOnexitFrameme_movie・go(_movie・frame)IfMouse・MouseDownthen_movie・go(_movie

7、・帧+1)其他的_movie0去(_movie。框架)最后如果如果(rightmouseclick二0)和(_mouseorightmousedown)然后_movie0去(_movie0标记(1))rightmouseclick二1最后如果女口果_Hiouse・rightmouseup然后rightmouseclick二0最后如果在keydown()如果(_key.keycode二121)或(_key.keycode二125)或(_key.keycode=36)或(_key.keycode=49)然后movieo去(_movie。框

8、架+1)最后如果如果((pguppress=0)和(_key.keycode=116))或((uppress=0)和(_key.keycode二126))然后集pguppress二1集uppress二1最后如果(_key

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。