# Array question

**URL:** <https://forum.kirupa.com/t/array-question/237268>\
**Category:** Uncategorized\
**Created:** [August 28, 2007, 8:37pm UTC](https://forum.kirupa.com/t/array-question/237268 "2007-08-28T20:37:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)\
**Post date:** [August 28, 2007, 8:37pm UTC](https://forum.kirupa.com/t/array-question/237268/1 "2007-08-28T20:37:40Z")

</div>

on the main time line I have a global variable called “count”, in the last key frame the main time line, I set the count to

```auto

count = count+1

```

In my movie clip, I have an array of cities, and as the count increments, I want to push a city from the array into a dynamic text field.

```auto

// set local time
 if (est == true) {
  hours = hours+0;
  var eastern_cities:Array = new Array("Cleveland", "New York", "Boston")
  if(count == 0){
   eastern_cities.push ("Cleveland")
  }else if(count == 1) {
   eastern_cities.push ("New York")
  }
  //_root.zone.time_zone.text ="EST"
  _root.zone.time_zone.text = +eastern_cities
 }

```

I can’t get this to work, what am I doing wrong?
