8 Replies Latest reply on Jul 10, 2007 6:18 PM by ntsiii

    NavigateToURL and LIST

    xrum Level 2
      hi :)
      i currently have two lists. when youc lick on an item in one, it shows corresponding items in the second.
      then you can click on an item in the second list, and got ot the proper website

      my code for my lists looks like this:


      <mx:List id="MyList" dataProvider="{Minutes.category}" labelField="title" width="100%" height="100%"/>

      <mx:List id="MyList2" dataProvider="{MyList.selectedItem.link.linkTitle}" labelField="linkTitle" click="executeSearch(event)" width="100%" height="100%" top="0" right="0"/>

      the executeSearch function looks like this:

      public function executeSearch(event:MouseEvent):void
      {
      var u:URLRequest = new URLRequest(Minutes.category.selectedItem.linkURL);

      navigateToURL(u,"_blank");
      }

      but, when i click on an item, nothing happens, not even an error message
      am i doing something wrong?

      pleeeaase help, thsi is killing me.

      i also tried this: var u:URLRequest = new URLRequest(MyList2.selectedItem.linkURL);
      :(
      i dont know what to do