Hi Alvin!

If You want to use Your script for several sprites You'ld rather do it
this way:

on mouseEnter me
  sprite(me.spriteNum+6).visible=1
  -- guess that "+6" refers to the border sprite 
end

on MouseLeave me
  sprite(me.spriteNum+6).visible=0
end

make that a behaviour and drop it on every sprite You want to act

regards, Florian

ALVIN GO schrieb:
> 
> Hi to All!
> 
> What I want to do is upon mouseover an object, some
> kind of a border, would appear.  I want to reuse the
> same script for several of them on screen.  There's
> this message that appears on mouseEnter:
> 
>   Script error: Property not found
> 
>   set the visible of sprite the currentspriteNum + 6
> 
>   #visible
> 
> Here's the code...
> 
> on mouseEnter
>   set the visible of sprite the currentspriteNum + 6
> to TRUE
> end
> 
> on mouseLeave
>   set the visible of sprite the currentspriteNum + 6
> to FALSE
> end
> 
> Sorry, I know I'm missing on something.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
> 
> [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!]

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

Reply via email to