[flexcoders] Why changing global variable also changes the model data?

2005-08-23 Thread P Trisnadi
I have a global variable that is populated by a model's data:     _global.arrayFruit = new Array();     ...     mx:Model id=fruitModel source=fruits.xml/     ...     _global.arrayFruit = fruitModel.fruit; Why does fruitModel.fruit also change when I do:    

RE: [flexcoders] Why changing global variable also changes the model data?

2005-08-23 Thread Gordon Smith
. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of P Trisnadi Sent: Tuesday, August 23, 2005 3:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why changing global variable also changes the model data? I have a global variable