Yeah. Read about #sendAllsprites / #sendsprite.
Personally I'd use #sendAllsprites, such as
on mouseEnter
sendAllSprites(#domouseEnter)
end
on mouseLeave
sendAllSprites(#doMouseLeave)
end
and you just create a doMouseEnter and doMouseLeave function on those
sprites you want to change
On Tue, 11 Mar 2003, Simon Wheatley (lists) wrote:
> I have a movie where I want to change four graphics with one rollover. At the
> moment I have individualised behaviours attached to each sprite like this:
>
> <lingo>
> on mouseEnter
> modRollover(56,25,12,0)
> end
> on mouseLeave
> modRollout(56,25,12,0)
> end
> </lingo>
>
> ...which call these handlers:
>
> <lingo>
> on modRollover txtSprite, thumbSprite, modNum
> sprite(56).member = "txtLine_mod" & modNum & "_on"
> sprite(23).member = "imgLine_mod" & modNum & "_on"
> sprite(39).member = "mainImg_mod" & modNum
> end
> on modRollout txtSprite, thumbSprite, modNum
> sprite(56).member = "txtLine_mod" & modNum & "_off"
> sprite(23).member = "imgLine_mod" & modNum & "_off"
> sprite(39).member = "mainImg_home"
> end
> </lingo>
>
> But it seems a little inelegant, and it all breaks if I move the graphics to a
> different channel. Is there a better way?
>
> Thanks
>
> Simon
>
>
> [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!]
>
[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!]