1 Reply Latest reply on Jul 16, 2007 4:59 AM by Leo1358

    Import URL from XML

    Leo1358
      Hi,
      Im trying to make a simple links page by importing link name and url from XML file.
      I receive the XML data and put them through a repeater but when it comes to the linkButton itself like this:

      <mx:LinkButton label="{linkRepeater.currentItem.name}" click="navigateToURL(new URLRequest('{linkRepeater.currentItem.url}'));"/>

      the {linkRepeater.currentItem.url} part does not parse inside the single quotation marks.
      I tried passing it to a function and calling the function inside the click but didnt work. I was thinking maybe using two functions and putting no arguments in the second one (the one that goes inside click=" " would work). Or maybe I can just use an action script LinkButton from start?

      Can anybody help me with this?

      Thank you