I'd make a simple test case and see if it works there.  Are you sure
your compDateRange has two elements with valid values?

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of rleuthold
Sent: Saturday, May 17, 2008 6:05 AM
To: [email protected]
Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear
does nothing



Hi,

I have a DateChooser in a popUp window. If I set the displayedMonth and
displayedYear 
properties on that DateChooser (after creating the popup), nothing
happens. The display is 
still on the month and year previously selected/displayed. Does anybody
have an idea ?

code (parent comp):

_datePickerWin =
DateRangerPopUp(PopUpManager.createPopUp(Application.application as 
DisplayObject, DateRangerPopUp, true));
_datePickerWin.compDateRange = _dateRange;

code (DateRangerPopup):
public function set compDateRange(dateRange:Array):void
{
_compDateRange = dateRange;

dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd:

_compDateRange[1] }];

dateChooser.displayedMonth = _compDateRange[1].month;
dateChooser.displayedYear = _compDateRange[1].fullYear;


Thank's rico



 

Reply via email to