making simple hyperlinks work

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Re: making simple hyperlinks work

    I had considered that option, however, this is a modular design for a CD-ROM learning course, and there are multiple volumes involved. Some fields will be scrolling, so the overlay would not work, as it does not move along with the text beneath.



    pixelburger webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Making hyperlinks from Mysql
      .....hum....ive found asp scripts but none for php. I have a results recordset and in the web link and contact results section i would like to have...
    2. Hyperlinks in Index Don't Work
      I created a book containing several documents. At the end of the book is an index. I converted the book to an Acrobat v5 PDF and checked the...
    3. Hyperlinks Don't Work
      OK. I officially feel like a computer illiterate. I have several web sites on the web; 2 are great, but when I upload the new one, I can not get...
    4. Addition to Hyperlinks Don't Work
      Sorry. Forgot to mention that I am using Pub. 2003. Thanks
    5. Some Hyperlinks will not work
      Some hyperlinks to other pages on my web site will not work when I publish my web site. Different ones may or may not work each time I publish to...
  3. #2

    Default Re: making simple hyperlinks work

    Other than creating using a scroll behavoir that enables you to scroll multiple sprites, then I cant help you sorry.

    Let me know if you want it, Ive done one in the past.





    Inglese a Roma webforumsuser@macromedia.com Guest

  4. #3

    Default Re: making simple hyperlinks work

    In article <bjkt87$i0d$1@forums.macromedia.com>, "pixelburger"
    [email]webforumsuser@macromedia.com[/email] wrote:
    > First of all, I have a simple text area with hypertext formatting. I
    have created multiple links, and they appear as the typical blue underline
    text that we all know and love. However, when the links are clicked,
    nothing happens.
    >
    > I'm sure there is probably some simple script I could attach to the text
    sprite, but I have no idea where to start.....yes, I'm a n00b.
    >
    > Could someone please explain the process in simple terms, or direct me
    to a tutorial or some such resource where I could walk through it.
    >
    What are the links to? The following will work if they are links to html pages.

    on hyperLinkClicked me,link
    goToNetPage link
    end

    If they are links to labels in your movie:

    on hyperLinkClicked me,link
    go link
    end

    The variable "link" gets passed into the handler by Director when the user
    clicks a link and has inside it whatever you entered when you created the
    hyperlink. That's why one little handler works for all of the links.

    Gretchen Macdowall
    [url]http://www.updatestage.com/[/url]
    Gretchen Macdowall Guest

  5. #4

    Default Re: making simple hyperlinks work

    How could I make that work if I have more than one link (separate URLs)
    within the text? Your script may work for a single link on an event, but I'm
    not exactly sure how to pass the separate links to the same behavior script.


    Pixel Burger Guest

  6. #5

    Default Re: making simple hyperlinks work

    In article <bjl576$3u3$1@forums.macromedia.com>, "Pixel Burger"
    <pixelburger@yahoo.com> wrote:
    > How could I make that work if I have more than one link (separate URLs)
    > within the text? Your script may work for a single link on an event, but I'm
    > not exactly sure how to pass the separate links to the same behavior script.
    You don't have to. Director does it for you. Try the behavior, as it is
    written, on a text sprite with multiple hyperlinks. As you click each
    link, Director extracts whatever you specified in the text inspector for
    the link url and passes it to the hyperlinkClicked handler. So each time
    you click a link the variable "link" will contain a different url.

    Try this behavior on the text sprite instead, to see what's going on:

    on hyperLinkClicked me, link
    alert "Variable link contains: " & link
    end

    Gretchen Macdowall
    [url]http://www.updatestage.com/[/url]
    Gretchen Macdowall Guest

  7. #6

    Default Re: making simple hyperlinks work

    I got an error, which is why I was asking for clarification. Maybe this
    error message will give you a better idea of what I'm up against.

    [url]http://www.pixelburger.com/forum_resources/link_error.gif[/url]


    "Gretchen Macdowall" <gcm@updatestage.com> wrote in message
    news:gcm-0909031532000001@192.168.1.102...
    > In article <bjl576$3u3$1@forums.macromedia.com>, "Pixel Burger"
    > <pixelburger@yahoo.com> wrote:
    >
    > > How could I make that work if I have more than one link (separate URLs)
    > > within the text? Your script may work for a single link on an event, but
    I'm
    > > not exactly sure how to pass the separate links to the same behavior
    script.
    >
    > You don't have to. Director does it for you. Try the behavior, as it is
    > written, on a text sprite with multiple hyperlinks. As you click each
    > link, Director extracts whatever you specified in the text inspector for
    > the link url and passes it to the hyperlinkClicked handler. So each time
    > you click a link the variable "link" will contain a different url.
    >
    > Try this behavior on the text sprite instead, to see what's going on:
    >
    > on hyperLinkClicked me, link
    > alert "Variable link contains: " & link
    > end
    >
    > Gretchen Macdowall
    > [url]http://www.updatestage.com/[/url]

    Pixel Burger Guest

  8. #7

    Default Re: making simple hyperlinks work

    It would be more useful if you would post the actual code or code snippet.
    Based on that error message it looks as if you have several problems with
    the code. The other thing to watch out for is that some newsreaders delete
    colons and other critical punctuation marks.

    hth,
    Doug
    "Pixel Burger" <pixelburger@yahoo.com> wrote in message
    news:bjleta$kal$1@forums.macromedia.com...
    > I got an error, which is why I was asking for clarification. Maybe this
    > error message will give you a better idea of what I'm up against.
    >
    > [url]http://www.pixelburger.com/forum_resources/link_error.gif[/url]
    >
    >
    > "Gretchen Macdowall" <gcm@updatestage.com> wrote in message
    > news:gcm-0909031532000001@192.168.1.102...
    > > In article <bjl576$3u3$1@forums.macromedia.com>, "Pixel Burger"
    > > <pixelburger@yahoo.com> wrote:
    > >
    > > > How could I make that work if I have more than one link (separate
    URLs)
    > > > within the text? Your script may work for a single link on an event,
    but
    > I'm
    > > > not exactly sure how to pass the separate links to the same behavior
    > script.
    > >
    > > You don't have to. Director does it for you. Try the behavior, as it is
    > > written, on a text sprite with multiple hyperlinks. As you click each
    > > link, Director extracts whatever you specified in the text inspector for
    > > the link url and passes it to the hyperlinkClicked handler. So each time
    > > you click a link the variable "link" will contain a different url.
    > >
    > > Try this behavior on the text sprite instead, to see what's going on:
    > >
    > > on hyperLinkClicked me, link
    > > alert "Variable link contains: " & link
    > > end
    > >
    > > Gretchen Macdowall
    > > [url]http://www.updatestage.com/[/url]
    >
    >

    Doug Golenski Guest

  9. #8

    Default Re: making simple hyperlinks work

    you've got a quote problem :

    "gotoNetPage "http:...........""

    quotes in quoted text can't work, since lingo compiler doesn't see opening
    and closing quotes, but just quotes, it thinks that you have to strings,
    that should be separated with a comma because passed as parameters :
    "gotoNetPage "
    and
    "http:............."

    you'll have to change the inner quotes by another unused char before sending
    the handler to the sprite, and then change them back in the handler.


    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "Pixel Burger" <pixelburger@yahoo.com> a écrit dans le message de
    news:bjleta$kal$1@forums.macromedia.com...
    | I got an error, which is why I was asking for clarification. Maybe this
    | error message will give you a better idea of what I'm up against.
    |
    | [url]http://www.pixelburger.com/forum_resources/link_error.gif[/url]
    |
    |
    | "Gretchen Macdowall" <gcm@updatestage.com> wrote in message
    | news:gcm-0909031532000001@192.168.1.102...
    | > In article <bjl576$3u3$1@forums.macromedia.com>, "Pixel Burger"
    | > <pixelburger@yahoo.com> wrote:
    | >
    | > > How could I make that work if I have more than one link (separate
    URLs)
    | > > within the text? Your script may work for a single link on an event,
    but
    | I'm
    | > > not exactly sure how to pass the separate links to the same behavior
    | script.
    | >
    | > You don't have to. Director does it for you. Try the behavior, as it is
    | > written, on a text sprite with multiple hyperlinks. As you click each
    | > link, Director extracts whatever you specified in the text inspector for
    | > the link url and passes it to the hyperlinkClicked handler. So each time
    | > you click a link the variable "link" will contain a different url.
    | >
    | > Try this behavior on the text sprite instead, to see what's going on:
    | >
    | > on hyperLinkClicked me, link
    | > alert "Variable link contains: " & link
    | > end
    | >
    | > Gretchen Macdowall
    | > [url]http://www.updatestage.com/[/url]
    |
    |


    Ned Guest

  10. #9

    Default Re: making simple hyperlinks work

    I think you're right. I think it's supposed to work with solution you
    provided in the example. It works fine for me when I run your movie, but I
    get an error. I will have to look at the cose more closely, but I definitely
    appreciate your help.


    "Gretchen Macdowall" <gcm@updatestage.com> wrote in message
    news:gcm-1009031014360001@192.168.1.102...
    > In article <bjleta$kal$1@forums.macromedia.com>, "Pixel Burger"
    > <pixelburger@yahoo.com> wrote:
    >
    > > I got an error, which is why I was asking for clarification. Maybe this
    > > error message will give you a better idea of what I'm up against.
    > >
    > > [url]http://www.pixelburger.com/forum_resources/link_error.gif[/url]
    > >
    >
    > It looks like you are trying to send a "hyperlinkclicked" message to the
    > text sprite via Lingo. Here's a little Director movie with one text member
    > and one behavior on it that shows what I mean. Maybe I am not
    > understanding what you really want to do.
    >
    > [url]http://www.updatestage.com/temp/hyperlink.zip[/url]
    >
    > Gretchen Macdowall
    > [url]http://www.updatestage.com/[/url]

    Pixel Burger Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139