资源描述:
《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