I have an XML file loaded like:

 

  <mx:HTTPService id="studentService"
url="data/{Fakulteti.selectedItem}.xml"

        result="studentServiceResultHandler(event)"/> 

 

private function studentServiceResultHandler(event:ResultEvent):void

        {

            var students:ArrayCollection = event.result.catalog.student;

            var temp:ArrayCollection = new ArrayCollection();

            var cursor:IViewCursor = students.createCursor();

            while (!cursor.afterLast)

            {

                var student:Student = new Student();

                student.fill(cursor.current);

                temp.addItem(student);

                cursor.moveNext();

            }

            catalog = temp;

        }

 

 

I can't figure out how to put the ProgressBar that will fill as the array
gets loaded with data from the XML.

 

Please help!!!

 

Thx in advance,

 

Vlada Stankovic

Reply via email to