Replace the element of one xml data with the PASSWORD element of another : Update : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Update »

 

Replace the element of one xml data with the PASSWORD element of another


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var user1:XML = <USERDETAILS>
            <LOGIN>joe</LOGIN>
            <PASSWORD>linuxRules</PASSWORD>
          </USERDETAILS>;
          
        var user2:XML = <USERDETAILS>
            <LOGIN>ken</LOGIN>
            <PASSWORD>default</PASSWORD>
          </USERDETAILS>;
        
        trace(user1);
        trace(user2);
        user2.PASSWORD = user1.PASSWORD;
        trace(user1);
        trace(user2);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Update