flexcoders  

RE: [flexcoders] weird ArrayCollection issue

Alex Harui
Mon, 26 Mar 2007 10:27:01 -0800

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

________________________________

From: flexcoders@yahoogroups.com [EMAIL PROTECTED] On
Behalf Of Clint Tredway
Sent: Monday, March 26, 2007 8:40 AM
To: flexcoders@yahoogroups.com
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/>