4 Replies Latest reply on Aug 18, 2008 7:25 PM by Noelbaland

    flash button link using actionscript 2.0

    miss_jess
      Hey guys,

      Need help creating a button link using actionscript 2.0. Geez, it used to be so easy using getURL. I've tried using the following code on the button and then the frame:

      my_button.addEventListener(MouseEvent.CLICK,clickHandler);
      function clickHandler(event:MouseEvent):void{
      navigateToURL(new URLRequest(" http://www.mywebsite.com"));
      }

      But it's not working. I am using Flash CS3 and my publish settings are set to ActionScript 2.0. What's going on!?