I want to use the mouse to move a sprite horizontally--it is important that
it not move vertically as well
I've done this:
sprite(3). moveable = TRUE
Don't do that. Here's a behavior:
PROPERTY pbDragging
on beginSprite me
pbDragging = FALSE
end on mouseDown me
pbDragging = TRUE
end on mouseUp me
pbDragging = FALSE
end on mouseUpOutside me
pbDragging = FALSE
end on exitFrame me
if pbDragging = TRUE then
sprite(me.spriteNum).locH = the mouseH
end if
endDrop the behavior on the sprite you want to move. With some tweaking it should work fine for you.
Warren Ockrassa | consulting | programming | [EMAIL PROTECTED] nightwares LLC | http://www.nightwares.com/ Developer | Structor, a presentation development/programming tool Info and demo | http://www.nightwares.com/structor/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/
[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!]
