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

    Bind a value of an HTTPService to a variable

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

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

      [Bindable]
      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"?>
      <vinlist>
      <vin id="1" description="test"></vin>
      </vinlist>

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

      Thanks for your help !
      Mika