3 Replies Latest reply on Feb 24, 2007 5:45 PM by chudson17

    Hyperlinl lingo

    chudson17
      Hello,

      I am simply trying to get a web address to link to a web site. I have tried some code I have from the director book and also from the forums but I am not getting it...

      the text is simply:
      www.anjmotorsports.com

      How do I script this so it actually goes to that site when clicked? Any suggestions would be appreciated.

      Thanks,
      Charles
        • 1. Re: Hyperlinl lingo
          Level 7
          Attached to your text sprite on the stage you could have the following
          code in a behavior script:
          --
          on hyperlinkClicked me, tData, tRange
          if not( tData starts " http://" ) then
          -- assume/default to http protocol:
          tData = tData & " http://"
          end if
          tResult = gotoNetPage(tData)
          end

          There are variations on this idea using xtras but the above should get
          you started.
          • 2. Re: Hyperlinl lingo
            James Newton, ACP Level 3
            1) Create a text member
            2) Paste your text into the text member
            3) Select your text
            4) Open the Text Inspector (menu item Window | Text Inspector)
            5) Type " http://www.anjmotorsports.com" (without the quotes) into the Hyperlink Data input area at the bottom
            6) Drag your text member onto the Stage
            7) Open the Library Palette (menu item Window | Library Palette)
            8) Use the cast selector icon to choose the Text palette
            9) Locate Chris Walcott's "Hypertext - General" behavior, and drag it onto your text sprite
            10) Run your movie and click on the hyperlink.
            • 3. Re: Hyperlinl lingo
              chudson17 Level 1
              Thank you very much. I finally got it to work!

              Charles