1 Reply Latest reply on Sep 5, 2008 2:28 AM by anirudhs

    SQL Progressbar for Insert

    manteratech
      Im trying to get my progressbar to update while I loop over an array and insert data into a SQLite table.
      Problem is that the progress only updates after all the records are done inserting. The code is really simple too,
      all I do is a for loop and pass the current index to the progressbar. Looks like this.....

      for(var i:int = 0;i<50;i++)
      {
      bar.setProgress(i,50);
      insertRecord(mydata1,mydata2,soforth);
      }

      Any help would be great, I cant even get it to update with and SQLEvent listener.

      Thanks,
      Stephan