Assign the desired attributes the desired values : Attributes : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Attributes »

 

Assign the desired attributes the desired values


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var novel:XML = <BOOK/>;
        
        novel.@ISBN = "0000000000";
        novel.TITLE = "ActionScript";
        novel.AUTHOR = "J, J";
        novel.PUBLISHER = "Books Ltd";
        novel.SETTING.CITY = "Dublin";
        novel.SETTING.COUNTRY = "Ireland";
        
        novel.SETTING.@CITY = "Dublin";
        novel.SETTING.@COUNTRY = "Ireland";
        
        trace(novel);
        
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Attributes