> You can use BuddyAPI to restrict the movement of the cursor...
>
> RestrictCursor
>
> Description: baRestrictCursor restricts the cursor to a specified part of
> the screen.
>
> Usage: baRestrictCursor( Left, Top, Right, Bottom )
That raises an interesting question, though - how do you exclude the cursor
from a rect, not contain it within a rect, as in this case, where the cursor
needs to stay outside of a QT?
It seems to me that baPlaceCursor() might be a better fit (FWIW,
restrictCursor() is not available on the Mac side, anyway) in this case.
Either way, though, you're going to need to do some polling of the mouseLoc.
Try this (attach to the Quicktime sprite):
-------------------------------------
-------------------------------------
property pMySprite
property pMyRect
property pLastLoc
---------------------
on beginSprite me
pMySprite = sprite(me.spritenum)
pMyRect = pMySprite.rect
end
---------------------
on exitFrame me
currentCursorLoc = the mouseLoc
if inside(currentCursorLoc, pMyRect) then
baPlaceCursor(pLastLoc.locH, pLastLoc.locV)
else
pLastLoc = currentCursorLoc + point(the stageLeft, the stageTop)
end if
end
-------------------------------------
-------------------------------------
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]