Make oldMousePos = the mouseH on beginSprite. Setting it to a constant
could cause some wackiness the first time the user tries to use it.
Make the mousedown handler look something like this:
on mousedown
if (the stillDown) then
if the mouseH > oldMousePos then
go to the frame+1
else if the mouseH < oldMousePos then
go to the frame-1
else
end if
endif
end mousedown
Give it a shot.
matt desimone
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kevin McCarthy
Sent: Friday, May 03, 2002 9:23 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> this works but how do i get it to work on drag or
stilldown ?
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!]