Re: lingo-l on hyperlinkClicked
On Wednesday, Mar 19, 2003, at 11:22 America/Chicago, Irv Kalb wrote: I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? IIRC to make dynamically loaded hypertext work, you have to, after loading the text in your member, set the member.media = the member.media to refresh Director. -- WthmO [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!]
Re: lingo-l on hyperlinkClicked
Have you tried : member(source).media = member(source).media to wake up the member? Worked for me when I created hyperlinks on the fly. Bertil Flink Creative Media - Original Message - From: Irv Kalb [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 6:22 PM Subject: lingo-l on hyperlinkClicked I must be missing something basic here - 'cause I've made this work before. I have a text member that I've put on stage. I have a field member called source with some valid HTML - it has one or more links in it that look like this: a href=somelinkSome text/a Then attach a behavior that to puts the text into the html of a member and waits for a click on a hyperlink: property spriteNum on beginSprite me sprite(spriteNum).member.html = member(source).text end on hyperlinkClicked me, data, range put data put range nothing end I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? Irv -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [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!]
RE: lingo-l on hyperlinkClicked
The only way I've dynamically created hyperlinks is: sprite(4).member.word[1].hyperlink = http://whatever; Have you tried putting the hyperlink of your text member in the message window to see if it actually has a hyperlink assigned to it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Irv Kalb Sent: Wednesday, March 19, 2003 12:23 PM To: [EMAIL PROTECTED] Subject: lingo-l on hyperlinkClicked I must be missing something basic here - 'cause I've made this work before. I have a text member that I've put on stage. I have a field member called source with some valid HTML - it has one or more links in it that look like this: a href=somelinkSome text/a Then attach a behavior that to puts the text into the html of a member and waits for a click on a hyperlink: property spriteNum on beginSprite me sprite(spriteNum).member.html = member(source).text end on hyperlinkClicked me, data, range put data put range nothing end I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? Irv -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [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!]
Re: lingo-l on hyperlinkClicked
Thanks very much Howdy - that did it! (Of course, no mention of this in the docs) Irv At 12:01 PM -0600 3/19/03, Howdy-Tzi wrote: On Wednesday, Mar 19, 2003, at 11:22 America/Chicago, Irv Kalb wrote: I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? IIRC to make dynamically loaded hypertext work, you have to, after loading the text in your member, set the member.media = the member.media to refresh Director. -- WthmO [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!] -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [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!]
Re: lingo-l on hyperlinkClicked
On Wednesday, Mar 19, 2003, at 12:34 America/Chicago, Irv Kalb wrote: Thanks very much Howdy - that did it! :D (Of course, no mention of this in the docs) Actually it's a quirk, so no, it's won't be documented. It's not intended behavior. :\ What I seem to recall is that this manifested from the start with Dir7 in 1999. Sic semper deferrals. -- WthmO [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!]
Re: lingo-l on hyperlinkClicked
- Original Message - From: Howdy-Tzi [EMAIL PROTECTED] Actually it's a quirk, so no, it's won't be documented. That's because Director would cost at least twice as much, and there would be far less trees left in the rainforests if they had to use enough paper to document all the quirks ;-) - Robert [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!]
Re: lingo-l on hyperlinkClicked
On Wednesday, Mar 19, 2003, at 13:35 America/Chicago, Robert Tweed wrote: Actually it's a quirk, so no, it's won't be documented. That's because Director would cost at least twice as much, and there would be far less trees left in the rainforests if they had to use enough paper to document all the quirks ;-) Heh, not to mention Gretchen's hit count would dwindle rapidly! -- WthmO [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!]