actionscript 3 - How do I use a local XML file as a DataProvider for a Spark List control in Flex 4.5? -


i building android app in flash builder 4.5 using flex 4.5.1 , having hardest time using locally stored (/data/data/app-name/db/pellets) xml file dataprovider spark list control. i've looked on net past 3 days , have tried bunch of different ways code working no avail.

i have skinnablepopupcontainer spark list control (list1) i'd populate "name" element in locally stored xml file (pelletdb.xml) contains 170 entries 6 elements each. xml looks this:

<tin>   <pellet>     <caliber>0.177</caliber>     <name>aa field</name>     <bc>0.0210</bc>     <weight>8.400</weight>     <style>n/a</style>     <material>lead</material>   </pellet>   <pellet>     <caliber>0.177</caliber>     <name>beeman bearcub</name>     <bc>0.0110</bc>     <weight>8.000</weight>     <style>n/a</style>     <material>lead</material>   </pellet> </tin> 

when click on list1 entry i'd populate labels. haven't been able xml data arraycollection used dataprovider spark list control. know must doing wrong someplace, appreciated!

as dataprovider list control need ilist datatype. like

list.dataprovider = new xmllistcollection(xml.children()); 

you can see sample on peter dehaans great flex example page: using xml data provider spark list control in flex 4


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -