![]() ![]() | |
Flash Player 5.
my_xml.attributes
Ninguno.
Una matriz.
Propiedad; una matriz asociativa que contiene todos los atributos del objeto XML especificado.
En el ejemplo siguiente se muestran los nombres de los atributos XML en la ventana Salida.
str = "<mytag name=\"Val\"> intem </mytag>"; doc = new XML(str); y = doc.firstChild.attributes.name; trace (y); doc.firstChild.attributes.order = "first"; z = doc.firstChild.attributes.order trace(z);
Lo que se muestra a continuación es lo que aparece en el panel Salida.
Val first
![]() ![]() | |