|  | 主题:  请问如何判断鼠标一直被按下 | 
            
                        
                
                    |  rousewolf
 职务:普通成员
 等级:1
 金币:0.0
 发贴:44
 注册:2002/6/4 10:43:54
 
 | 
                            
                            #12002/6/27 10:58:05 
                                在制作自定义的滚动条时,一般只能判断鼠标单击mousedown,或者鼠标位于精灵内部mouse within.请问如何判断鼠标一直位于精灵内部并一直被按下,以实现鼠标一直按着某个按扭连续滚动的的操作?
 | 
                        
                
                    |  donlee
 职务:普通成员
 等级:1
 金币:1.0
 发贴:271
 注册:2000/12/8 8:52:18
 
 | 
                            
                            #22002/6/27 12:11:05 
                                mouseup 与 mouseupoutside
 | 
                        
                
                    |  rousewolf
 职务:普通成员
 等级:1
 金币:0.0
 发贴:44
 注册:2002/6/4 10:43:54
 
 |  | 
                        
                
                    |  rousewolf
 职务:普通成员
 等级:1
 金币:0.0
 发贴:44
 注册:2002/6/4 10:43:54
 
 |  | 
                        
                
                    |  dexn
 职务:普通成员
 等级:1
 金币:1.0
 发贴:157
 注册:2000/12/7 21:54:20
 
 | 
                            
                            #52002/7/2 10:29:39 
                                stilldown
                                
                                
                                
                             | 
                        
                
                    |  D计划-混沌
 职务:管理员
 等级:6
 金币:15.2
 发贴:3528
 注册:2007/4/9 9:48:37
 
 | 
                            
                            #62002/7/2 13:39:24 
                                on mousedown me   repeat while the mousedown
 if the ticks mod 60 =0 then
 sprite(2).loch=sprite(2).loch+1
 end if
 updateStage
 end repeat
 end
 
                                
                                    编辑历史:[这消息被54zq编辑过(编辑时间2003-03-03 14:18:33)]
 
 | 
                        
                
                    |  rousewolf
 职务:普通成员
 等级:1
 金币:0.0
 发贴:44
 注册:2002/6/4 10:43:54
 
 | 
                            
                            #72003/2/25 11:48:40 
                                还是不能用。比如我想让鼠标一直按下某一个按钮时,播放头可以一直向前跑针,可是播放头就只停在当前针上,不能向前跑。只能点一下,跑一针。
 怎么解决呢?
 | 
                        
                
                    |  rebecca2688
 职务:普通成员
 等级:1
 金币:0.0
 发贴:70
 注册:2002/7/31 21:22:54
 
 | 
                            
                            #82003/3/3 0:22:58 
                                on mouseWithin可以吗?
 | 
                        
                
                    |  D计划-混沌
 职务:管理员
 等级:6
 金币:15.2
 发贴:3528
 注册:2007/4/9 9:48:37
 
 | 
                            
                            #92003/3/3 14:18:06 
                                on exitframeif the mousedown then
 go to the frame +1
 else
 go to the frame
 end if
 end
 | 
                        
                
                    |  rousewolf
 职务:普通成员
 等级:1
 金币:0.0
 发贴:44
 注册:2002/6/4 10:43:54
 
 |  | 
                        
                
                    |  thelcg
 职务:普通成员
 等级:1
 金币:0.0
 发贴:106
 注册:2002/6/23 16:32:23
 
 | 
                            
                            #112003/3/29 21:50:52 
                                if the stillDown then
                                
                                
                                
                             | 
                        
                
                    |  luvxf
 职务:普通成员
 等级:1
 金币:0.0
 发贴:11
 注册:2000/12/18 20:27:35
 
 | 
                            
                            #122003/4/1 2:10:19 
                                On mousewithinif the mousedown then
 ...
 end if
 end
 
 |