3 Replies Latest reply on Aug 4, 2009 12:53 PM by kglad

    Error 1137: Incorrection number of arguments. Expected no more than 1

    Tamist

      Hello from a beginner!

       

      I want my navigation bar to open other pages in the same window.  Currently, it's opening as if it's _blank (must be the defaut when nothing is coded).

       

      I thought I was coding correctly, but the error above popped up - so now I don't know what to do next.  Any help would be appreciated.  Thanks in advance.

       

      The code as it is with the error is as follows - the line with the error is highlighted in italics.

       

      function goHome(event:MouseEvent):void {

      var targetURL:URLRequest = new
      URLRequest("http://www.fairwoodcommunitynews.com/Alphatest/Home.html", "_parent");
      navigateToURL (targetURL);

      }

       


      homeBtn.addEventListener(MouseEvent.CLICK, goHome);