thanks Kurt.....BUT Director says to me `HANDLER NOT
DEFINED(baPlaceCursor(pLastLoc.locH, pLastLoc.locV)wHAT SHOULD I do???????
[EMAIL PROTECTED]
kloosterleuter str.31-19
3961 AX Wijk bij Duurstede
tel:06-51922532
>From: Kurt Griffin <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: RE: <lingo-l> mouseLoc or?
>Date: Mon, 20 Aug 2001 12:48:17 -0400
>
> > 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!]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
[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!]