[flexcoders] ToggleButtonBar xml based dataProvider (2)
Still can't understand why the following does not work: code: mx:ToggleButtonBar id=floorlines direction=vertical iconField=icon horizontalGap=5 itemClick=clickHandler (event); labelField=label creationComplete=floorLinesData(); height=100% fontSize=8 fontWeight=bold/ data: root lines id4/id labelG2/label onlinetrue/online icon@Embed('D:/projects/sfcs/assets/status_online.png')/icon /lines lines /root code: floorlines.dataProvider = resultXML.lines; error: Error: ERROR: The dataProvider of 'floorlines' must not contain objects of type flash.display.DisplayObject. at mx.controls::NavBar/set dataProvider()[C:\autobuild\3.2.0 \frameworks\projects\framework\src\mx\controls\NavBar.as:378] at tasktracking/floorLinesShowData() [D:\projects\sfcs\tasktracking\src\tasktracking.mxml:107] at modulecode::Classes/httpResult() [D:\projects\sfcs\UFDCommonLib\src\modulecode\Classes.as:62] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::di spatchRpcEvent()[C:\autobuild\3.2.0 \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re sultHandler()[C:\autobuild\3.2.0 \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193] at mx.rpc::Responder/result()[C:\autobuild\3.2.0 \frameworks\projects\rpc\src\mx\rpc\Responder.as:43] at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0 \frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler() [C:\autobuild\3.2.0 \frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.a s:403] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() Thanks
[flexcoders] ToggleButtonBar xml based dataProvider
Is that possible? Thanks
RE: [flexcoders] ToggleButtonBar xml based dataProvider
Certainly. Why would you think not? Though to speak accurately, you would use XMLList or XMLListCollection as the dataProvider. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Friday, February 20, 2009 3:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ToggleButtonBar xml based dataProvider Is that possible? Thanks