Log in

View Full Version : Display concatenated attributes in ComboBox labels with XMLConnector?



jlizarraga
11-13-2008, 10:08 PM
Hi all,

Using XMLConnector for the first time. Here's a relevant sample of the XML:


<RESULTS>
<MODEL YEAR="2008" MAKE="Ford" MODEL="E-Series Van" TRIMCOUNT="11">
<YEAR>2008</YEAR>
<MAKE>Ford</MAKE>
<MODEL>E-Series Van</MODEL>

I followed Adobe's tutorial (http://www.adobe.com/devnet/flash/articles/xmlconnector05.html) and now have a ComboBox being populated with the MODEL attribute, using the Rearrange Fields formatter and "label=MODEL". The Adobe tutorial mentions the following:


Although we do not do so here, it's also possible to concatenate multiple values as a single String in the label.

I have Googled around but can't find any information on accomplishing this with the XMLConnector. I could do this myself with plain Actionscript, but I'd much rather use the XMLConnector.

I would like the labels to be "YEAR MODEL" instead of just "MODEL".

Any tips greatly appreciated!

Medyman
11-16-2008, 10:56 PM
I don't use the XMLConnector because I find it clumsy for the sorts of thing that i do on a daily basis. It's easier when working with moderate amounts of data. But there comes a certain threshold when it gets to be a hindrance.

Anyway, from that quote that you posted, it sounds like you're just concatenating the label names. Something like: label=year+model, perhaps? That's a total guess but I don't see what else it could be.