Sharon,
Just what do you mean by "working":
global gThumbLoc
on mouseEnter me
gThumbLoc = sprite(30).locH
gThumbLoc = gThumbLoc - gThumbLoc
if gThumbLoc <> 0 then
sprite(me.spriteNum + 2).visible = TRUE
end if
end
on mouseLeave me
sprite(me.spriteNum + 2).visible = FALSE
end
In your mouseEnter handler you first set gThumbLoc to the sprite's locH, then proceed
to set it to zero (gThumbLoc - gThumbLoc = 0) and then hit your if statement. Seems to
me that if this code "worked" your sprite would never be set to visible. Is that
what's happening? Seems that this would occur no matter what sprite(30).locH was.
The code as you had it before should work just fine so long as (a) you're sprite
references are all correct and (b) your expected sprite location was correct.
Cheers,
Tom
[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!]