XML and AS3 tips and tricks

Testing the existance of a node or an attribute in XML with AS3

if ("nodeName" in node) {
    // do something
}

if ("@attributeName" in node) {
    // do something
}

 

Post A Comment

Anti-Spam Quiz: