In the AS3 XML class there appears to be two ways of getting the localName of an element:
oXml.localName()
and
oXml.name().localName()
Is there any difference between the two? Is one generally preferred over the other?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As can be seen in the documentation this will ultimately resolve to the same value in the second case you’re making two method calls in the first only one. In the second case you’re getting an object that contains a fully qualified name, if you select the name off of that it’s the same as just selecting the simple name from the XML object directly from what I can tell.