# eventListener on lines of text

**URL:** <https://forum.kirupa.com/t/eventlistener-on-lines-of-text/284121>\
**Category:** flash\
**Created:** [March 15, 2009, 5:20pm UTC](https://forum.kirupa.com/t/eventlistener-on-lines-of-text/284121 "2009-03-15T17:20:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatratstew](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fatratstew](https://forum.kirupa.com/u/fatratstew)\
**Post date:** [March 15, 2009, 5:20pm UTC](https://forum.kirupa.com/t/eventlistener-on-lines-of-text/284121/1 "2009-03-15T17:20:03Z")

</div>

I have a function which cycles through an array and adds lines of text to a textField.

```auto
for (var i:int = 0; i < results.length; i++) {
                            var furnList:Array = results*.split("#");
                            
                            desc = furnList[0];
                            url = furnList[1];
                                            
                            label.appendText(desc + "
");
                            
                        }
                        
                        addChild(label);

```

Is it possible to add an event listener to each line of text? Or is there a better way of doing this?
