At 5:23 PM -0500 3/11/03, you wrote:
Hello and Delurk.

I have a goofy problem.  I'm trying to do a simple rollover
which changes the color of some text.  Eventually this will
become a buttonish thingy, and, hopefully, work for a whole pile
of different bits of text and change them all in nice, neat,
tidy ways.  However, at the moment, I'm not getting the simple
version to work.

When the mouse rolls off the text, it goes grey or black instead
of going back to the colour it began with (brownish).

What I have at the moment is:  (numbers are basically random for
now)


1. you need to add property definitions for the preset properties so their valuse are maintained within all the handlers - otherwise, they'll revert to zero.

just add this at the top of the script

property pNormBut, lChanBut

2. you need to add the 'me' parameter on each handler line

as in:
on beginSprite me


--------- On beginSprite set pNormBut = the forecolor of Sprite (the currentSpriteNum) -- set pBackCol = end

Also, while I'm here, what are the differences between
  mouseEnter and
  mouseWithin?

fires when the mouse moves within the border of the sprite - when it was creted, there was no mouseLeave

mouseEnter fires when the mouse moves inside the border of the sprite.
It has an associate event mouseLeave which fires when the mouse moves out.

mouseWithin is essentially the same as mosueEnter, but it's older & was introduced without a 'leave event'.

hth
-Buzz
[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!]

Reply via email to