[flexcoders] Memory leaks

2015-09-24 Thread Isabelle Loyer Perso isa_lo...@yahoo.fr [flexcoders]
Hi I created an air application with a schedule. 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]

[flexcoders] Re: Memory leaks

2015-09-24 Thread shravanso...@yahoo.com [flexcoders]
Combine variable declaration and object creation in single statement. See the below pseudo code for example: private var myDataCalendar :ArrayCollection=new ArrayCollection(); function ChangeWeekHandler(Event){ myDataCalendar= HttpServiceToGetNextWeekData(); myDataCalendar.refresh(); }