20 Replies Latest reply on Jul 12, 2011 3:29 AM by relaxatraja

    How do I add Hyperlinks to Flash Images?

    BrendonWalker Level 1

      I've just begun to dabble in Flash and created a neat little project first up as an experiment, but now want to learn how to take it to the next level.

       

      I watched this tutorial...

       

      http://youtu.be/5yjvBDgB0NA

       

      and am now wondering how I can hyperlink the main images?

       

      Here's the code I have:

       

      stop();

      button1.addEventListener(MouseEvent.MOUSE_OVER,showpic1);
      button2.addEventListener(MouseEvent.MOUSE_OVER,showpic2);
      button3.addEventListener(MouseEvent.MOUSE_OVER,showpic3);
      button4.addEventListener(MouseEvent.MOUSE_OVER,showpic4);
      button5.addEventListener(MouseEvent.MOUSE_OVER,showpic5);


      function showpic1(Event:MouseEvent):void{
          gotoAndStop("pic1")
      }

      function showpic2(Event:MouseEvent):void{
          gotoAndStop("pic2")
      }

      function showpic3(Event:MouseEvent):void{
          gotoAndStop("pic3")
      }

      function showpic4(Event:MouseEvent):void{
          gotoAndStop("pic4")
      }

      function showpic5(Event:MouseEvent):void{
          gotoAndStop("pic5")
      }

       

       

       

       

      I tried adding this:

       

      On (Release)
      Get URL ("http://www.google.com", window="_blank")
      End On

       

       

      ...but it makes the images rotate through in a crazy way and breaks the mouse over function.

       

      Can anyone teach me how to create hyperlinks for each "pic"?

       

      Thank you