one thing to do is add an enterframe script, and check if the mouse is
already down when entering the frame:

on enterFrame me
 if the mouseDown then 
   if the mouseH > oldMousePos then
     go to the frame+1
   else
     go to the frame-1
   end if
 end if
 
end 

and actually, i'd put that inner if/then/else clause into its own method
and call it from mousedown AND enterFrame.


and don't you want to be resetting oldMousePos every frame?



--bhakti



Kevin McCarthy wrote:
> 
> I got the code below to work, but I need it to update on click and drag,
> or I think it might be stilldown I need to use but am not sure.
> Can anyone point me in the right direction.
> 
> -KEV-
> 
> property oldMousePos,
> on beginsprite me
>   oldMousePos=333
> end
> 
> on exitFrame me
>   go to the frame
>   --put the mouseH
>   --put oldMousePos
> end
> 
> on mousedown
> 
>   if the mouseH > oldMousePos then
> 
>     go to the frame+1
>   else if the mouseH < oldMousePos then
>     go to the frame-1
>   else
> 
>   end if
> end if
> 
> end mousedown
> end
> 
> [To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
>[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
>learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to