3 Replies Latest reply on Jan 26, 2010 3:37 PM by Ned Murphy

    how to stop flash adding link 'hit zone' at start of animation?

    nickharambee Level 1

      Hi  I have created a short animation in Flash CS4 which has one button with a URL link.  the button shows up on frame 217, and on that frame I added the following action script:

       

      button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

      function mouseDownHandler(event:MouseEvent):void {

          navigateToURL(new URLRequest("http://www.nickis40.com/main/main.html"));

      }

       

      however, the 'hit zone' for the button shows up from frame 1 of the animation.  is there a way of getting the hit zone to start when the button shows up?

       

      Thanks

       

      Nick