# Using array to populate from 00 to 59

**URL:** <https://forum.kirupa.com/t/using-array-to-populate-from-00-to-59/322248>\
**Category:** flash\
**Created:** [May 16, 2011, 6:28am UTC](https://forum.kirupa.com/t/using-array-to-populate-from-00-to-59/322248 "2011-05-16T06:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![celestale](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@celestale](https://forum.kirupa.com/u/celestale)\
**Post date:** [May 16, 2011, 6:28am UTC](https://forum.kirupa.com/t/using-array-to-populate-from-00-to-59/322248/1 "2011-05-16T06:28:38Z")

</div>

Hi guys, I’m trying to use array to create 00,01,02,03,04 … all the way to 59. Can anyone tell me what’s wrong with the code?

```auto
var myLabels_Min:Array = new Array(60);
for(var a=0;a<myLabels_Min.length;a++)
{
	if (myLabels_Min[a].length == 1){
		myMin.addItem( {label: "0" + a } );
	}else{
		myMin.addItem( {label: a } );
	}
}

```
