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
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] =
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
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
4 matches
Mail list logo