After the replacement, the two elements have the same content : Update : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Update »

 

After the replacement, the two elements have the same content


 

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);
        
        trace(user1.PASSWORD[0== user2.PASSWORD[0])// Displays: true
        
        trace(user1.PASSWORD[0

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Update