Re: [flexcoders] Need array example

2008-06-13 Thread jitendra jain
From: Chilcoat, Dee [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 13, 2008 4:20:20 AM Subject: [flexcoders] Need array example I need an example of copying fields in an array to another array, but I don’t want the fields to be pass-by-reference. I’m trying to create

[flexcoders] Need array example

2008-06-12 Thread Chilcoat, Dee
I need an example of copying fields in an array to another array, but I don't want the fields to be pass-by-reference. I'm trying to create a holdingarray for input in a datagrid. This is code I have used. holdData[6] =

Re: [flexcoders] Need array example

2008-06-12 Thread Ben Marchbanks
Look into using a data Model. Populate the Model with a record of data and Bind the data entry fields to the Model Then, whenever you want to change the model you can use a change event to update the Model or not. The Model becomes your temporary storage. mx:Model id =myModel

Re: [flexcoders] Need array example

2008-06-12 Thread Douglas Knudsen
look into ObjectUtil.copy(). Note if you are using typed objects in that Array, you should be, you will need to make use of registerAlias() so this copy will work. registerAlias(com.foo.goo, 'goo'); dest = ObjectUtil.copy( origin ); though my syntax may be a wee off... DK On Thu, Jun 12, 2008