If you set a cursor in a beginSprite and do not clear it in the matching endSprite handler, the cursor will still be set for any other sprites that appear in the same channel anywhere else you may navigate to within the same movie. Clearing it in the on endSprite handler prevents this problem.
Irv
At 11:29 AM -0500 12/21/04, KLGC Studio wrote:
What you mention is the technique I use Irv, but without the endSprite part. Maybe I've just never run accross a situation where the reset was necessary in on endSprite?
Lee C
Irv Kalb wrote:
You might want to try the syntax that Chris suggested but in a different place. I always use the sprite(spriteNum).cursor syntax, but I put it in the beginSprite and endSprite handlers:[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!]
property spriteNum
on beginSprite me sprite(spriteNum).cursor = 280 --anything else you want to do here end
on endSprite me sprite(spriteNum).cursor = 0 -- -1 sometimes screws things up later -- anything else you want to do here end
This way, there is no need to set and reset in every mouseEnter and mouseLeave.
Irv
--
Multimedia Wrangler. [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!]
