hi all. here is what I am trying to do. I have 4 MCs in the _root - then i load an xml file. when loaded i pick out attribute values and assign to the dynamic text fields i have within MCs. Then again I verify the xml node attribute for boolian value. if the attriute value is true in xml then i change the MC color to green and make it cliciable. If the attribute value is false in xml, then I change the MC color to yellow. pretty cool huh. i am having trouble. can you help me please. here is halfway script…
art_xml = new XML();
art_xml.ignoreWhite = true;
art_xml.onLoad = function() {
var artElement = this.firstChild;
_root.b1.bid_txt.text = artElement.attributes.bid;//b1 is MC and bid_txt //is dynamic text field within MC b1
if (artElement.attributes.sta == “AV”) {
myClr = new Color(_root.b1);
myClr.setRGB(0x009900);
reserveNow();
} else {
myClr = new Color(_root.b1);
myClr.setRGB(0x990000);
}
_root.bidTxt.bidTxt.text = artElement.attributes.bid;
function reserveNow(){
this.onPress = getURL(“http://localhost/site/kickme.asp?id=”+artElement.attributes.bid, “POST”);
};
};
art_xml.load(“art3.xml”);
the trouble is making the MC clickable in xml value is true.
krs