Work around for filter creating new array?

Hi

if I have

var myArray: Array = new Array(1,2,3);

and I then use this as an argument in the constructor of some object eg

var someObject:SomeClass = new SomeClass(myArray);

but then I do this

myArray=myArray.filter(someFilteringFunction);

the ‘myArray’ passed to ‘someObject’ is no longer linked to/the same array as the ‘myArray’ that has been filtered.

I do want to filter the first array but I also want them to stay the same. How do I do that ?

I have tried and intermediary array with no success.

After days of trying the work out what was going on in my code I am totally open to any suggestions (and some more sleep!!)

Thank you for your consideration,

S.