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]
Name (required)
email (will not be published) (required)
Website