This content has been marked as final. Show 4 replies
That's just how arrays work in many languages. If you want an actual
duplicate of an array and not a reference then use the slice method:
var newArray:Array = myArray.slice()
I saw that in the actionscript dictionary, and it's a great idea. That wil probably solve my problem with arrays, but how do I do the same for a generic Object?, like for a class I defined myself?
You'll need to explain why you'd want to do this with a custom class -
instead of simply making a new instance of the class.
No, i mean I want to save my object (of a custom class) to the SharedObject.
The code for this custom class is as follows: