I'm trying to expand on the concept here 
http://blog.tsclausing.com/post/20 and get a more sophisticated 
representation of the data.  When I try to set my GroupingCollection 
as the DataProvider for a TabBar, I get this error:

Error: ERROR: The dataProvider of 'monthSelector' must not contain 
objects of type flash.display.DisplayObject.
        at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\controls\NavBar.as:378]
        at GroupingFunction/init()[C:\Documents and Settings\Amy\My 
Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68]
        at 
GroupingFunction/___GroupingFunction_Application1_creationComplete()
[C:\Documents and Settings\Amy\My 
Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:2]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
        at mx.core::UIComponent/set initialized()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
        at mx.managers::LayoutManager/doPhasedInstantiation()
[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:701]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:8565]
        at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]

I can understand that maybe a GroupingCollection wasn't meant to be 
used as a dataProvider for a TabBar, but why does Flex think it has 
UIComponents in it?

Thanks;

Amy

Reply via email to