ノードの値や名前を取得/設定するには

//メインタイムラインのフレームアクション
src = "<Brazil>";
src += "<director>Terry Gilliam</director>";
src += "<starring>De Niro</starring>";
src += "<distributor>20th Century Fox</distributor>";
src += "</Brazil>";
my_xml = new XML(src);
data1_txt.text = my_xml;
for (var i in my_xml.firstChild.childNodes) {
if (my_xml.firstChild.childNodes[i].nodeName == "starring") {
my_xml.firstChild.childNodes[i].firstChild.nodeValue = "Pryce";
}
}
data2_txt.text = my_xml;
・サンプルを実行
・サンプルをダウンロード
Action Script逆引きクイックリファレンス 説明などは本書を参考にしてください。