2 Replies Latest reply on Jul 14, 2009 11:30 AM by Gregory Lafrance

    1120: Access of undefined property hslider

    KalavatiSingh

      Hi,

            I am getting this error while I am [lanning to use hslider.Can anybody help me out so as to remove this error.I even googled but not much results

       

      the code where i am getting this

       

       

      private function eventComplete(event:Event):void
              {
                 
                 
                  var obj:Object;
                  var str:String=new String();
                  var result:String=new String(loader.data);
                  datarecords=new ArrayCollection();//csv datarecords
                  record=result.split("\r\n");
                  totalpackets=record.length;
                  for(var i:int=0;i<record.length-1;i++)
                  {
                      obj=new Object();
                      fields=record[i].split(",");
                      obj.tvalue=fields[0];
                      obj.evalue=fields[1];
                      obj.pvalue=fields[2];
                      obj.dvalue=fields[3];
                      obj.uvalue=fields[4];
                     
                     
                      datarecords.addItem(obj);
                      hslider.value=datarecords.length-1;-----error
                  }