14 Replies Latest reply on Mar 11, 2011 9:18 AM by Ned Murphy

    as3 problem with button navigation

    h_perrobirdo Level 1

      I am having trouble getting this code to work that I have linked to a button I want to navigate to this page within my current browser window can someone tell me what is wrong with this code and how to fix it

      this is the error i getwhen i click on it

      TypeError #2007:perameter url must be non null

       

      var url:String = ("http://www.google.com/");

      google_btn.addEventListener(MouseEvent.MOUSE_DOWN,function():void {

      navigateToURL(new URLRequest, '_self');}

      );