# Stuck with timing on AS code

**URL:** <https://forum.kirupa.com/t/stuck-with-timing-on-as-code/331451>\
**Category:** flash\
**Created:** [August 3, 2013, 6:35pm UTC](https://forum.kirupa.com/t/stuck-with-timing-on-as-code/331451 "2013-08-03T18:35:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gloopy](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@gloopy](https://forum.kirupa.com/u/gloopy)\
**Post date:** [August 3, 2013, 6:35pm UTC](https://forum.kirupa.com/t/stuck-with-timing-on-as-code/331451/1 "2013-08-03T18:35:42Z")

</div>

Hi,  
I’m working on this script:

> **[wonderfl build flash online | 面白法人カヤック](https://www.kayac.com/service/other/94)**
>
> wonderflは、サイト上でFlashをつくることのできるサービス。
> 
> 通常Flashをつくるためには、Flash IDEやFlex、FlashDevelop等といったツールを使って、コードを書き、コンパイルする...

I have adapted it so that users can enter their own text and it will be rendered as smoke text…

The problem I have is that if the user enters text which is too long, e.g.

Happy Birthday John

Then the timing of the script is such that before it gets to the end, it restarts again, so the full message is not displayed.

I have been looking at the AS code but I can’t work out what in the code controls when it resets and starts again.

I’m running the code in FlashDevelop in case that is relevant.

Any advice would be much appreciated.

Thank you!
