To populate this schedule with appointment, I launch an httpservice and
result is use to populate an array collection. Each time user change
week, a new request is sending.
The variable myDataCalendar (array collection) is defined as [Bindable]
private var myDataCalendar :ArrayCollection;
I try to reuse the same ArrayCollection, but I think making a mistake
because memory increase each time, and garbage collector seems not working!
myDataCalendar = new ArrayCollection();
Combine variable declaration and object creation in single statement. See the below pseudo code for example:
private var myDataCalendar :ArrayCollection=new ArrayCollection();
Note: HttpServiceToGetNextWeekData() should return anonymous objectof type ArrayCollection.