# Filling up a textbox with text

**URL:** <https://forum.kirupa.com/t/filling-up-a-textbox-with-text/260494>\
**Category:** Uncategorized\
**Created:** [May 16, 2008, 8:07am UTC](https://forum.kirupa.com/t/filling-up-a-textbox-with-text/260494 "2008-05-16T08:07:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alber\_Kidd](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Post date:** [May 16, 2008, 8:07am UTC](https://forum.kirupa.com/t/filling-up-a-textbox-with-text/260494/1 "2008-05-16T08:07:11Z")

</div>

Whe I try and fill up a textarea with multiline text I get an error.

1095: Syntax error: A string literal must be terminated before the line break.

This is because I have put in line breaks to make it more readable in my actions panel. I can add it a line at a time with

mytextBox.appendText ("this is line one ");  
mytextBox.appendText ("this is line two ");

but I need a better way to import a load of text to my textbox.

Thanks.

---

<div class="post-metadata">

**Author:** ![Alber\_Kidd](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Post date:** [May 16, 2008, 8:11am UTC](https://forum.kirupa.com/t/filling-up-a-textbox-with-text/260494/2 "2008-05-16T08:11:20Z")

</div>

I have a frame based animation which when finished. Dispatches an event to the maintimeline.

Is there a better/another way to determine if the animation is on the last frame (frame 20). it must contain a loop I suppose?

AK
