XMLListCollection


i can't seem figure out how obtain list of child nodes given specific parent node. example, have following xml data
<groups [list of properties]>
<albums[list of properties]>
<photos[list of properties]/>
<photos [list of properties]/>
</albums>
</groups>

now put xmllistcollection tilelist. list of groups displayed , when user clicks on group tilelist needs changed display albums child of group clicked on. can't seem figure out how documentation provided.

i've made far seem @ impasse. when itemclick event dispatched on tilelist following code runs:

var ismatch:boolean = false
// piclist id tilelist
var node:xml = xml(piclist.selecteditem)

// run filter
if(item.attribute("title").tolowercase().search(node.attribute("title").tolowercase()) != -1){
ismatch = true
}
piclist.itemrenderer=ralbums;
return ismatch;

now without [piclist.itemrenderer=ralbums;] code, tilelist display group clicked. needs display child album nodes under group node clicked. line described above causes error. line supposed assign new item renderer specific album node previous 1 set in <mx:tilelist itemrenderer="thumbnail"...>. since can't seem work i'm @ impasse. i'm not sure if i'm approaching wrong way or if i'm missing small here. if has ideas means...

i left out function seems, let me correct myself. when itemclick event dispatched on tilelist following code runs
myxmlist.filterfunction = searchforit;
myxmlist.refresh();

where myxmlist xmllistcollection containing predescribed xml data , searchforit function contains code beginning "var ismatch:boolean = false" listed in previous post


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial