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

Reply via email to