# Naming an Array

**URL:** <https://forum.kirupa.com/t/naming-an-array/248299>\
**Category:** flash\
**Created:** [January 6, 2008, 9:41pm UTC](https://forum.kirupa.com/t/naming-an-array/248299 "2008-01-06T21:41:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tazboy](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@tazboy](https://forum.kirupa.com/u/tazboy)\
**Post date:** [January 6, 2008, 9:41pm UTC](https://forum.kirupa.com/t/naming-an-array/248299/1 "2008-01-06T21:41:03Z")

</div>

I have 4 arrays. Their names are news1Ar, news2Ar, news3Ar, news4Ar.

When I push a ‘next’ button I want the next array to load its text.

```auto
news_mc.newsNext_mc.onRelease = function() {
    newsShowing++;
    this._parent.news_txt.htmlText = "<.news_txt_h1>"+ **'news'+newsShowing+'Ar'**.title "</.news_txt_h1>"+ newline + "<.news_txt>"+ news2Ar +"</.news_txt>";
}

```

The bold part I’m having trouble with. I need to dynamically name the array to the next array name. Like news1Ar to news2Ar.

Thanks for any suggestions you might have.
