Create Date object from xml data : Loop through : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Loop through »

 

Create Date object from xml data


 


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


        var loan:XML = <LOAN>
          <BOOK ISBN="0000000000" DUE="1136091600000">
            <TITLE>ActionScript</TITLE>
            <AUTHOR>J, J</AUTHOR>
            <PUBLISHER>Books Ltd</PUBLISHER>
          </BOOK>
        </LOAN>;
        
        
        for each (var due:XML in loan..@DUE) {
          trace(new Date(Number(due)));
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Loop through