Use a wildcard (*) with the @ operator to access all attributes of an element : At : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » At »

 

Use a wildcard (*) with the @ operator to access all attributes of an element


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){


        var fruit:XML = <fruit name="Apple" color="red" />;
        
        tracefruit.@*[0] );
        
        tracefruit.@*[1] );
        
        tracefruit.@*.length(  ) );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» At