1 Reply Latest reply on Aug 27, 2008 12:43 PM by KimberC

    NavigateToURL problem

    KimberC
      Hello All,

      Here is my code:

      private function newWin(url:String):void {
      var urlRequest:URLRequest = new URLRequest(url);
      navigateToURL(urlRequest);
      }

      <mx:LinkButton x="411.5" y="481" label="Home" click="newWin(' http://www.....)"/>

      So, another window pops up, but it's minimized when I would like it to open to it's maximum size. Does anyone know what I'm missing in my code? Thanks in advance for suggestions and help!

      Cheers,

      KimberC
        • 1. Re: NavigateToURL problem
          KimberC Level 1
          Found the problem... needed to add window:String="_top" in the Actionscript and ,'_top' within the click function of my button:

          private function newWin(url:String,window:String="_top"):void {
          var urlRequest:URLRequest = new URLRequest(url);
          navigateToURL(urlRequest, window);
          }

          <mx:LinkButton x="411.5" y="481" label="Home" click="newWin(' http://www.....', '_top')"/>