I've got a movie clip with 4 parameters (which correspond to 4 variable fields in the clip). I've created an XML file of which each node has four childnodes with the same names as the variables. Is it possible to use the names of the child nodes to set the clip parameters?

Something like
childnode = parentnode.firstChild();
movieclip.parameters(childnode.nodeName) = childnode.nodeValue;
perhaps (but what would be the correct syntax?)