But it seems a little inelegant, and it all breaks if I move the graphics to a
different channel. Is there a better way?
Instead of putting the rollover commands in the sprite being pointed to, put it into behaviors attached to each sprite that is supposed to change, and then do a sendAllSprites, a la:
on mouseEnter me
sendAllSprites ( #modRollover, 0 )
end on mouseLeave me
sendAllSprites ( #modRollout, 0 )
end...with the behavior for the respective sprites that receive the call being:
on modRollover me modNum
sprite(me.spriteNum).member = "txtLine_mod" & modNum & "_on"
end on modRollout me
sprite(me.spriteNum).member = "txtLine_mod" & modNum & "_off"
end
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!]
