1 Reply Latest reply on Jan 16, 2011 12:19 PM by NoahVZ

    links opening in new windows

    NoahVZ

      Hello,
      I'm relatively new and I've made a script on my banner for buttons to link internally to different pages on my webpage. The problem I'm having is every time I click on a link it directs me into a new window, can anyone help solve this so it will redirect in the same window and new tabs wont keep poping up? The website is http://bikesports.ca/ if you want to see the problem I'm having.

       

      stop()

       

      road.addEventListener(MouseEvent.ROLL_OVER,play1);

       

      function play1(event:MouseEvent):void{
          gotoAndStop("specroad");

       

      road.addEventListener(MouseEvent.CLICK, goWhere)
      function goWhere (evt) {
      var url = "http://bikesports.ca/product-list/bicycles-road-57/"
      navigateToURL(new URLRequest(url))
      }

       

      }

       

      I've tried a few things but I can't get anything to work. If I can get some help fixing this first chunk of it I shouldn't have any trouble fixing the rest of the script!
      Thanks if anyone can lend a hand