# Help looping button

**URL:** https://forum.kirupa.com/t/help-looping-button/258092
**Category:** flash
**Created:** [April 20, 2008, 9:10pm UTC](https://forum.kirupa.com/t/help-looping-button/258092 "2008-04-20T21:10:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jayoh](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@jayoh](https://forum.kirupa.com/u/jayoh)
#### Post date: [April 20, 2008, 9:10pm UTC](https://forum.kirupa.com/t/help-looping-button/258092/1 "2008-04-20T21:10:18Z")

</div>

Hi.

I am using flash 8.

I cannot get my head around this!

I have a simple message-board, that dynamically loads text from php and a text file!

I have created an up and down button to scroll the text box when you press it!

This works fine, but I cannot figure out how to keep scrolling the text if you hold the button down.

here is my code for the down button (all my attempts at looping etc I got rid of):

```auto
on (press) {
	GuestBook.scroll++;
	if (myscroll3._y<(170-myscroll3._height+myscroll3.top)) {
		myscroll3._y = myscroll3._y+((200-myscroll3._height)/3);
	}
}

```

Any suggestions will be highly appreciated. Half of my hair has already gone!

Thanks, John.
