macromedia.director.lingo
[Top] [All Lists]

Re: (OSControl Xtra)How to detect when a user clicks down and when up

Subject: Re: (OSControl Xtra)How to detect when a user clicks down and when up
From: "wgb14"
Date: Sat, 28 Jul 2007 06:46:51 +0000 UTC
Newsgroups: macromedia.director.lingo

Ok, here is the partial answer to the problem

 on beginSprite(me)
   pSprite = sprite(me.spriteNum)
 end beginSprite


 on update(me, aClickedPart)
   
   
   case aClickedPart of 
       
     (#up): 
       
       
       timeout("scrollImage" & me.spriteNum).new(10, 
sendAllSprites(#scrollImage, -5), me)
       
       
     #down:
       
       timeout("scrollImage" & me.spriteNum).new(10, 
sendAllSprites(#scrollImage, 5), me)
       
   end case 
    
 end 

 My problem however is that i don't know how to sync the thumb of the scrollbar 
with the up and down actions. Any ideas? 



<Prev in Thread] Current Thread [Next in Thread>