Rob,

Thanks so much for getting me off the dime. For anybody who cares here is
the fix:

The stage's hyperlink handler has to specifically address the stage text
sprite like this-

tell the stage -- even though we are on the stage
    tell sprite(me.spriteNum)
                        tWord = pSprite.pointToWord(the mouseLoc)
              tLink = pSprite.member.word[ tWord ].hyperlink
                        -- more code here
    end tell
end tell

The LDM's hyperlink handler has to specifically address the LDM sprite like
this-

global g_LDMSprite

tell the stage
    tell sprite(g_LDMSprite)
        tWord = pSprite.pointToWord(the mouseLoc)
      tLink = pSprite.member.word[ tWord ].hyperlink
        -- more code here
    end tell
end tell

The above code concept fixes the bleed through and all the hyperlinks now
show the correct cursor.

Many thanks!

GSB




Message: 17
Date: Tue, 27 Jul 2004 11:38:01 -0400
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> Hyperlinks in LDM and stage bleed through
From: Rob Romanek <[EMAIL PROTECTED]>
Organization: Manibus Productions
Reply-To: [EMAIL PROTECTED]

Hey Geoff,

A couple things. First if you set a cursor in an LDM is actually does 
change it but as soon as the mouse moves the stage takes over and sets the 
cursor to its preferred setting. So most of the time you will not see the 
change or see it as a quick flash. The way around this is to target the 
stage with all your cursor changes. Which version of director are you 
using? If pre-MX04 then use

tell the stage to cursor 280

in MX04

_player.activeWindow.movie.cursor(280)

As far as the hypertext bleeding stuff can you post some sample files 
someplace. If you do I'll have quick look and see if I can come up with a 
work-around.

later,

Rob

___________________________________
Geoffrey S. Baker
Programmer
Accelera
300 E. Lombard Street
Baltimore, MD 21202
__________________________________
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
tel:  443-451-3800 
fax: 443-451-3810

 
[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