On Monday, August 12, 2002, at 01:54 PM, Sharon Moeller wrote:
> What I am trying to do is make a hilite of the currentsprite visible if
> it
> is rolled over and the location of sprite 30 is less than 0. I've tried
> your suggestion and still get the stupid freakin hilite showing up no
> matter
> what. Does the negative number thing have anything to do with it?
No, that shouldn't have any negative effect at all; qute to the
contrary. Hmm, try this:
on beginSprite me
sprite(me.spriteNum + 2).visible = FALSE
end
on mouseEnter me
if sprite(30).locH < 0 then
sprite(me.spriteNum + 2).visible = TRUE
else
sprite(me.spriteNum + 2).visible = FALSE
end if
end
on mouseLeave me
sprite(me.spriteNum + 2).visible = FALSE
end
Also note that this needs to be running with frame updates via go the
frame. If you've got a pause in the framescript this won't work. And try
adding some put statements:
on mouseEnter me
if sprite(30).locH < 0 then
sprite(me.spriteNum + 2).visible = TRUE
put "Should be visible"
else
sprite(me.spriteNum + 2).visible = FALSE
put "Should be hidden"
end if
end
When the mouse hits the sprite one of those two statements should begin
filling your message window.
Tom Higgins suggested making sure 116 was the right locH target; to that
I'd add the question of whether sprite 30 is in fact the one to test,
and if the sprite 2 channels on top of this one is the one that has the
hilite shape.
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://shop.osborne.com/cgi-bin/osborne/0072195622.html
[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!]