----- Original Message ----- From: "donvoltz" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, October 23, 2008 2:19 PM Subject: [flexcoders] Is this possible?
> Hello, > > I am working on a large app using Cairngorm and am trying to develop > a sort of copmplex component amd am curious if this is a workable > solution. > > I have created a custom component that extends a titleWindow. The > data for this component will come from an ArrayCollection in my > ModelLocator (ie, each of these components, there will be 30, will > use getItemAt(an id number) to obtain the data using binding. > > What I am not sure is the following. I obtain the number of days in a > month and cycle throught to create a custom TitleWindow for each day > using actionscript. Each of these classes are then added to another > ArrayCollection in the ModelLocator. This ArrayCollection is then > regenerated with new custom components when a new month is selected. > > Now in my main application, I create a TileList and set the > dataProvider to the ArrayCollection on the ModelLocator where these > custom component classes exist. > > Will this work?? In my initial work, I seem to have a TileList that > does contain these components, however, They are not displaying the > title or other information that I added into each component. Your tileList will expect to find label and icon fields in dataProvider, otherwise you'll need an itemRenderer to display the tiles (binding to the fields in the data). Sounds like: 1) Your don't have an item renderer and the fields in your dataprovider don't include label or icon, or 2) You have an itemRenderer and the fields displyed in your itemRenderer aren't bound to the fields of your data object that is passed to it, or 3) Youn have no data! Paul. > > I hope it is clear what I am trying to do. I want to make a calendar > type component with each day as a custom component. The day is > dynamically bound to a subset of an ArrayCollection. I also need to > have the month (ie each day of the month would need to change as the > month and year changes). > > Any help if I am on the right direction is appreciate. > > Thanks in advance > > Don > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > >

