Extending Array class

After thinking about it for too long I finally decided to make my own array class!
I was getting tired of doing array[array.length - 1] to get the last element of an array…

So far the class is working ok. I’ve got my getter/setter for the array.last property.

Now the thing is trace(array) is not displaying the usual array output. Basically the output window displays nothing…

Is there a solution to this? Or do I have to create my own trace method like array.trace() ?

Also is there a way to use my array class by default instead of the original array class? So that when I do var myArray = [] it creates an array with my class.

TIA