3 Replies Latest reply on Aug 22, 2010 7:20 AM by kglad

    Relative link in SWF opens new browser window, why?

    chipsticks09

      Hi All,

       

      I have a SWF movie with a link that I need to be a relative link. Actionscript 3.0 Code below

       

      import flash.events.MouseEvent;
      var getIndex:URLRequest = new URLRequest("../index.html");

      //---Enter Button---\\

      E_btn.addEventListener(MouseEvent.CLICK, bClick);

      function bClick(event:MouseEvent):void{
      navigateToURL(getIndex);
      }

       

      When the link is clicked it opens the correct page but in a new browser window instead of navigating within the same window to the page, as relative links should do, shouldn't they?

      Does anyone know how to rectify this? Bit of a newbie (as I am sure you've guessed)

       

      Cheers in advance