I'm trying to setup a configuration xml file for a user to set the field names in, which would then be picked up by the mxml script.
Basically I have a bunch of code like this:
var Ratepayer1LastName:String = resultGraphic.attributes.Ratepayer1LastName; var Ratepayer2FirstName:String = resultGraphic.attributes.Ratepayer2FirstName;
And I want that last bit to be set by the user in an xml file. So I basically want this bit to always stay the same - "resultGraphic.attributes." and then the last bit (e.g. Ratepayer1LastName) to be assigned from an xml file.
I'm not sure how to do this? If I go:
userconfig = configXML.windowtitle var Ratepayer1LastName:String = "resultGraphic.attributes." + userconfig; it obviously just takes that string and not the actual attribute value.