4 Replies Latest reply on Oct 9, 2006 9:04 AM by yoyesman

    Bind a value of an HTTPService to a variable

      Hi, I try to bind a value from an HTTPService to a string variable. Here my HTTPService :

      <mx:HTTPService id="GetVin" url="" resultFormat="e4x" useProxy="false" result="BindData();"/>

      private var description_var:String;

      private function BindData():void {
      description_var = GetVin.lastResult.vinlist.vin.description;

      And my HTTPService result :

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <vin id="1" description="test"></vin>

      I don't find the way to simply have : description_var = 'test'

      Thanks for your help !