# Extend array classs

**URL:** <https://forum.kirupa.com/t/extend-array-classs/146251>\
**Category:** Uncategorized\
**Created:** [April 29, 2005, 10:46am UTC](https://forum.kirupa.com/t/extend-array-classs/146251 "2005-04-29T10:46:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilz](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nilz](https://forum.kirupa.com/u/Nilz)\
**Post date:** [April 29, 2005, 10:46am UTC](https://forum.kirupa.com/t/extend-array-classs/146251/1 "2005-04-29T10:46:47Z")

</div>

I got a class extending the array. np there  
when I instantiate a new object from the class I call it myArray  
(var myArray:NewArray = new NewArray(); )

now what’s the fastest way to fill the new object?  
All I could find is  
myArray[0] = “blah”  
myArray[1]= “nop”  
myArray[2] = etc etc etc

Can’t do it faster?  
i tried myArray[1,2,3,4]  
tried new NewArray(1,2,3,4)

Or can I really extend the Array class somehow. I tried to add a shuffle method to the Array class…

help ??

thx 🙂
