event.result might be object instance #123923879
 
You've assigned it to both newTestGroup and groups so your sharing.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Tredway
Sent: Monday, March 26, 2007 8:40 AM
To: [email protected]
Subject: [flexcoders] weird ArrayCollection issue



I have to arrayCollections that I am assigning the same data to.

I am adding an item to one of the collections but that item is getting
set to both collections, wth??

code is here:

newTestGroup = event.result as ArrayCollection;
groups = event.result as ArrayCollection; 
var arr:Object = {testGroupId:0,testGroupName:"Show
All",dsn_source:dsn};
groups.addItemAt(arr,0);

any help wold be appreciated..

one last thing. if I alter the newTestGroup collection, the same thing
happens to the groups collection.
-- 
http://indeegrumpee.spaces.live.com/
<http://indeegrumpee.spaces.live.com/> 


 

Reply via email to