----- Original Message ----- > > Buzz's intuition is correct: My mouseWithin handler mimics the a:hover > class for CSS links on a web page. In other words, constantly on > mouseWithin, when you are over the text, lingo tests if you are over a > link, and if so, the link changes color and adds an underline (the > a:hover class), and when you are not over any link, the hyperlink range > goes back to looking like a default link. > > And, yes, I do see a performance hit in doing that. Has anyone done > this with better efficiency? >
Here's a cutdown of something I've used - it uses pointInHyperLink, pointToChar & hyperlinkRange. I've not tested it against your approach. property pSprite, pMember on beginSprite me pSprite = sprite(me.spriteNum) pMember = pSprite.member end on enterFrame me mLoc = the mouseLoc if pointInHyperLink(pSprite, mLoc) then pSprite.cursor = 280 theChar = pointToChar(pSprite, mLoc) myChar = pMember.char[theChar].ref linkRange = myChar.hyperlinkRange else pSprite.cursor = 0 end if end hth johnAq [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!]
