5 Replies Latest reply on Jul 11, 2010 12:27 PM by Ned Murphy

    How to get the button work?

    learner_7n

      Hi,

       

      I have a movie clip "Google_mc". Instance name is "Google". Inside Google_mc I have created a layer "Actions" and wrote the following code to access "Google" webpage. But I am getting the following error:

       

      Google.addEventListener.(MouseEvent.CLICK,BClickHandler);

      function BClickHandler(event:MouseEvent):void {
          navigateToURL (new URLRequest ("http://www.google.com"));
          trace("Clicked");
      }

      Error.JPG

      Thanks.