On 5/7/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:

> But I also found Darron Schall's article about it here:
> http://www.darronschall.com/weblog/archives/000148.cfm
> 
> Also, for a simple array of objects, it is easy to write your own copy
> routine.
> function arrayCopy(aArray:Array):Array {
>   var aCopy:Array = new Array()
>   for (var i:Number=0;i<aArray.length;i++) {
>     aCopy.push(aArray[i]);
>   }
> }

[probably off-topic now...]
That creates a shallow copy.  If you ever want to deepcopy _and_ have
circular references resolved, then I wrote something that seems to
work well:
http://manish.revise.org/2005/04/deepcopying-actionscript-objects.html


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to