Assigning Values to an XMLList : XMLList : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XMLList »

 

Assigning Values to an XMLList


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var doc:XML = <DOC TOPIC="Code Tips" AUTHOR="Colin">
            <P>Errors are your friends</P>
            <P>Backup often</P>
          </DOC>;
        
        doc.* = <P>Practice coding everyday</P>;
        trace(doc.*);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XMLList