What are you expecting out of this node: <data>new Date(2008,7,17)</data>
Looks vewwy suspicious to me. I know of no way to make a string representing a declaration execute under AS. And a text node is a string. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of tspyro2002 Sent: Friday, July 11, 2008 10:37 AM To: [email protected] Subject: [flexcoders] Passing Dates to DateChooser via XML Problem Hi guys, The problem I'm having is as follows : I have a combobox that holds information on different countries and when this is updated by the user (ie they pick a new country) a region combo box is then automatically updated. The countries XML file holds information for the combobox with the country and the location of a new XML file which holds all the information on its regions as follows : <?xml version="1.0" encoding="utf-8"?> <item> <label>Spain</label> <data>xml/spain.xml</data> </item> A similar XML file has the regions of Spain with certain available dates of staying and this is linked to a DateChooser control and this is where I'm running into difficulties. <?xml version="1.0" encoding="utf-8"?> <item> <label>Somewhere in Spain</label> <data>new Date(2008,7,17)</data> </item> When this date is passed into the ArrayCollection it doesn't seem to be associated with the data value in the comboBox yet it seems to work fine when the new XML file is referenced? Any comments or thoughts are appreciated. Cheers David

