Creating an XML Object : XML Object : XML Flash / Flex / ActionScript examples


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

 

Creating an XML Object


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var example:XML = <abc><a>eh</a><b>bee</b><c>see</c></abc>;
        var username:String = "Darron";
        var score:int 1000;
        
        var example:XML = <gamescore>
                             <username>{username}</username>
                             <score>{score}</score>
                          </gamescore>;

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Object