2 Replies Latest reply on Sep 5, 2009 5:50 AM by flashfever

    Creating hyperlink button

    TSemmes

          It seems that even as a newbie this should be a simple thing to do.

      ( I am using  CS3 on the Mac)

      I create a button and add this action

       

      on(release)
      {
      getURL("http://www.yourwebsite.com");
      }


       

      but get several errors when I go to publish it.

       

      So searching on google I find this code

       

       

      myButton.addEventListener(MouseEvent.CLICK, myButtonFunction); function myButtonFunction(event: MouseEvent) { var request:URLRequest = new URLRequest("http://www.yourwebsite.com"); navigateToURL(request); }