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)

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

On mouseEnter
  If the Stilldown then
    set lChanBut = 44
  else
    set lChanBut = 22
  end if
  set the forecolor of sprite (the CurrentSpriteNum) =  pNormBut
+ lChanBut
end

On mouseDown 
  set the forecolor of sprite (the CurrentSpriteNum) =  pNormBut
+ 44
end

On mouseUp
  set the forecolor of sprite (the CurrentSpriteNum) =  pNormBut
+ 22
end

On mouseLeave
  set the forecolor of sprite (the CurrentSpriteNum) =  pNormBut
end
--------------

The other two colours seem to be consistent, so it's something
about the way the variable is being set, I think.

Any idea why this isn't working.  Be gentle, I'm a newby.  (and
being a newby will take suggestions unrelated to the main
problem, as well :)

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


thanks and 93,
   VMR. 

=====

Sjalfr Sjalfum m�r...

"Discussion is the Law, Discussion under Chill the [EMAIL PROTECTED] out!"
                                                             - ZZ


______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
[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