i'm trying to display mx:Model data in CellRenderer(within TileList). The mx:Model has following format.
<mx:Model id="monthdata"> <obj> <item> <date>1</date> <day>0</day> <daysch> <title>Sales MTG</title> <title>Presentation</title> </daysch> </item> <item> <date>2</date> <day>1</day> <daysch> <title>something to do</title> </daysch> </item> </obj> </mx:Model> <daysch> element may have multiple nested elements. Above data will be passed into dataProvider of TileList. <mx:TileList columnCount="7" rowCount="6" borderStyle="none" dataProvider="{monthdata.obj.item}" listItemRenderer="adayCellRenderer"> Then, the CellRenderer should be able to get item data by itself. 1: <mx:Link label="{dataObject.date}"/> 2: <mx:VBox > 3: <mx:Repeater id="rp_1" dataProvider="{dataObject.daysch}"> 4: <mx:Link label="{rp_1.currentItem.title}"/> 5: </mx:Repeater> 6: </mx:VBox> I've confirmed that line1({dataObject.date}) has no problem, it works as i expected. However, line3-5 doesn't work. When I run this application, i got following error dialog. TypeError: Error #1034: Type Coersion failed: cannot convert mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection at mx.binding::Binding/execute() at mx.binding::Binding/watcherFired() at mx.binding::Watcher/notifyListeners() at mx.binding::PropertyWatcher/handleEvent() at flash.events::EventDispatcher/dispatchEvent() at mx.core::Container/set dataObject() at mx.controls.listclasses::TileBase/calculateHeight() at mx.controls.listclasses::ListBase/measure() at mx.core::UIComponent/UIComponent$480$private::measureSizes() at mx.core::UIComponent/validateSize() at mx.managers::LayoutManager/validateSize() at mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation() at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2() at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher() I hope someone correct me... Best Regards, Keishichi ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/