Create an array with dynamic entries


How might I go about creating an array, and then use AS to input a range of entries dynamically.

For example, imagine I wanted to create an array with 9 null entries.

var myArray=[null,null,null,null,null,null,null,null,null];

Im sure a for loop is required, I just dont know how to do it :cantlook:

Thank you