1 Reply Latest reply on Nov 19, 2008 2:43 PM by FrankyG813

    How does one link URLS to listbox items

    FrankyG813 Level 1
      Hi, Great Forum!! I created a listbox based on a dataprovider (see both below).
      I want to be able to click on the item to access a web document on a different window. I have, what I believe are all the pieces, except I don't know what to pass into the function to read the URL clicked on. Please help
      public function executeLink(event:MouseEvent):void {
      var u:URLRequest = new URLRequest(?????.data);
      <mx:ArrayCollection id="arrColl">
      <mx:Object label="Getting Started Guide" data=" http://www.cnn.com" />
      <mx:Object label="Row 2" data=" http://www.cnn.co"/>
      -------------------This is the list box -----------------------
      <mx:List id="list"
      alternatingItemColors="[0xEEEEEE, 0xDFDFDF]"
      click="executeLink(event)" labelField="label" height="434"/>