5 Replies Latest reply on Nov 6, 2007 12:56 PM by ntsiii

    navigateToURL is not working

    Xavi Colomer Level 1
      Hello Everyone,

      I'm trying to build some application but I'm a little lost here.

      I'm using navigateToUrl to change the application but only _blank is working,

      _parent, _self and _top doesn't work

      can anyone help me????

      thanks

      import flash.net.navigateToURL;
      import flash.net.URLRequest;
      import flash.events.Event;
      import mx.controls.Alert;

      public function loadApplication(event:Event):void
      {
      var url:String = " http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try
      {
      navigateToURL(request,"_self");
      }
      catch (e:Error)
      {
      // handle error here
      }
      }


      <mx:Button id="b1" label="CAT" width="50" click="loadApplication(event)" />