You can also do:

var myNode:String = "background";
var myAttr:String = "url";
var foo:XMLList = customxml.config[mynod...@[myattr];

You almost got it ;)

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Steven Loe wrote:
In E4X we use dot notation to access a node in an XML:


var foo = customxml.config.backgrou...@url

Is it possible to substitute variables in portions of the path above? Something 
like this:

var myNode = "background";
var myAttr = @url;

var foo = customXML.config.[myNode].[myAttr];

Possible?

Thanks very much
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to