# Simple actionscript based ticker question

**URL:** <https://forum.kirupa.com/t/simple-actionscript-based-ticker-question/248018>\
**Category:** Uncategorized\
**Created:** [January 2, 2008, 10:00pm UTC](https://forum.kirupa.com/t/simple-actionscript-based-ticker-question/248018 "2008-01-02T22:00:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourgasm](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sourgasm](https://forum.kirupa.com/u/sourgasm)\
**Post date:** [January 2, 2008, 10:00pm UTC](https://forum.kirupa.com/t/simple-actionscript-based-ticker-question/248018/1 "2008-01-02T22:00:40Z")

</div>

I threw together this exceedingly simple script:

```auto

onClipEvent (load) {
        this.main.text = "Planning & Design";
        this.sub.text = "lasting solutions through best technology";
        this._x = 300;
        this._y = 700;
}

onClipEvent (enterFrame) {
    if (this._y > 100) {
        this._y = this._y-2;
    } else {
            this.main.text = "Business Process Improvement";
            this.sub.text = "building value through efficient operation";
            this._x = 300;
            this._y = 700;
        }
}

```

It drops text into dynamic text fields and vertically scrolls the movie clip that contains them. I use a gradient at the top and bottom to effectively make the text disappear and reappear. Check this directory for the FLA:

[http://sour.org/flash](http://sour.org/flash)

My question is, how do I continue the loop to insert more phrases? I have about 10 I need to put in. Is there any way to set up an array or a more effective nested loop?

Thank ya.
