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();
}
Note: HttpServiceToGetNextWeekData() should return anonymous objectof type
ArrayCollection.
Hope this helps. :-)

