Finding Elements by Name : XML Object : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XML Object »

 

Finding Elements by Name


 

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

        var fruit:XML = <fruit><name>Apple</name></fruit>;
        
        tracefruit.name );
        
        var author:XML = <author><name><firstName>Darron</firstName></name></author>;
        
        traceauthor.name.firstName );

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Object