thanks again, tom. i came to a solution with a repeat coomand that sent back
all the sprites to their default value through spriteNum, but yours is
smoother and more clean, so i'll use it. also, i'll take a look to that
sendAllSprites command, it looks quite useful.
victor
--
victor zambrano
[EMAIL PROTECTED]
--
> Date: Thu, 23 Aug 2001 08:48:07 -0700
> From: Thomas Higgins <[EMAIL PROTECTED]>
> Subject: RE: <lingo-l> bring to front a sprite on rollover
>
> Build on this simple behavior and you're ready to rock'n'roll:
>
> on mouseEnter (me)
> -- boost this sprite's locZ
> sprite(me.spriteNum).locZ = 100000
> -- message all sprites to reset their locZ
> sendAllSprites(#resetLocZ,me.spriteNum)
> end mouseEnter
>
> on resetLocZ (me, thisSpriteNum)
> -- if this sprite was not the message sender, then respond...
> if (me.spriteNum <> thisSpriteNum) then
> -- ...by resetting the sprite's locZ value
> sprite(me.spriteNum).locZ = me.spriteNum
> end if
> end resetLocZ
>
> Cheers,
> Tom
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]