XMLConnector + DateChooser -> DataGrid

Id like to have an XMLConnector read an xml-file (containing dates, and a “To Do” string for each date).

A DateChooser should be on stage, enabling the user to select a date, and view the textstring for that specific date pop up in a DataGrid.

Something very similar to this tutorial, in the section “Arrays and Indexing”, replacing the ComboBox with a DateChooser:

http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/flashmx2004/databinding.php

I tried modifying the tutorial accordingly, but without success. I guess my skills aint good enough to accomplish this yet.

Anybody here understands the ins and outs of this type of databinding?

well, i rekon i can help a little. I would set up the xml document like this;
<Datapack>
<Data>
<Date>some date here</Date>
<Todo>some data here</Todo>
</Data>
<Data>
<Date>some date here</Date>
<Todo>some data here</Todo>
</Data>
</Datapack>

This script is self explanatory, it stores all the information you have in a neat, easyily accessible format.

Now,the way in which i would retrieve this data is use the xml class.

var myXML:XML = new XML();
myXML.load(http://yourdomain.com/datapack.xml);

i feel i can help more like handling the data and using it but first let me know if this is at all relavent to you :wink:

First of all, the xml-structure is nice and tidy, so Ill use it :slight_smile:

But Im using the xmlconnector component, which means you dont have to load the file manually with the code you wrote. The component handles it automatically, so its basically just a matter of getting the dataconnections between the components XMLConnector, DateChooser, and DataGrid to be configured correctly. Thats where the problem lies.

Thanks for the reply, though :slight_smile: