3 Replies Latest reply on Jun 8, 2009 11:25 PM by kglad

    Linking button to HTML URL opening in same window


      So the following code allows us to open an HTML link with the click of a button:


      function callLink(event:MouseEvent):void


          var myURL:URLRequest = new URLRequest("http://www.adobe.com/");




      The problem is that this always opens the link in a new window. So what if I want it to open in the same window? Changing the line to:


      var myURL:URLRequest = new URLRequest("http://www.adobe.com/","_self");


      results in a compiler error.




      I am embedding this swf on a web page of my own, so there are no security concerns regarding giving flash access.