1 Reply Latest reply on Jan 8, 2008 3:46 PM by batmitra

    URLRequest String

    GeorgeWS Level 1
      I have this that works great:

      [Bindable]
      private var linkData:Array = [{label:"Home",data:Employee}, {label:"Directory",data:Employee}, {label:"Documents",data:Employee}, {label:"E-Mail",data:Employee}, {label:"Reports",data:Employee}, {label:"Tools",data:Employee}, {label:"Training",data:Employee}, {label:"HR",data:Employee}];


      <mx:LinkBar width="100%" itemClick="navigateToURL(new URLRequest(' http://www.youngmarket.com/Main.cfm?goto=' + String(event.label).toLowerCase()), 'Main')" selectionColor="#A5B6BE" rollOverColor="#A5B6BE" height="24">
      <mx:dataProvider>
      {linkData}
      </mx:dataProvider>
      </mx:LinkBar>


      My problem is that I want to send the data part of the array also. How do you do this? I have tried a variety of things this seems the closest, I just cannot get the syntax:

      <mx:LinkBar itemClick="navigateToURL(new URLRequest(' http://www.youngmarket.com//Main.cfm?goto=' + String(event.label).toLowerCase())+'&employee='+String(event.data).toLowerCase()), 'Main')">

      Thanks

      George