Use the name( ) method on the attribute reference to retrieve its name : Attributes : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Attributes »

 

Use the name( ) method on the attribute reference to retrieve its name


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var fruit:XML = <fruit name="Apple" color="red" />;
        
        tracefruit.attributes(  )[1].name(  ) );


    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo XML
» Attributes