7 Replies Latest reply on Oct 28, 2009 8:59 AM by Netvideomaker

    Change web pages with button URL links


      I'm building a site to showcase various engagement tools for the web. Most of what is involved is new to me. My biggest challenge is finding the right AS3 code to make buttons link to URLs. Thanks to a Jen de Haan video tutorial I got code that works - but when I try to duplicate it and change the btn name, in order to make two, or three or four separate links to four unique buttons I get an error about trying to call the same function more than once.

      This is her code and as I said it works for one button link. Can it be made to work for multiple instances?


      inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
      function buttonClickHandler(event:MouseEvent):void
      navigateToURL(new URLRequest("http://www.adobe.com"));
      trace("I'm clicked");


      Right now all of my links use the Properties text link feature, which continues to deliver target=blank function despite my having deleted the target and saved and republished way more than once.


      David Hurdon

      www.netvideomaker.com/eVideo.htm (current state of project. Not all links are yet live.)