# Scrolling Text Error message

**URL:** https://forum.kirupa.com/t/scrolling-text-error-message/250896
**Category:** Uncategorized
**Created:** [February 3, 2008, 2:06am UTC](https://forum.kirupa.com/t/scrolling-text-error-message/250896 "2008-02-03T02:06:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dboy100](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@dboy100](https://forum.kirupa.com/u/dboy100)
#### Post date: [February 3, 2008, 2:06am UTC](https://forum.kirupa.com/t/scrolling-text-error-message/250896/1 "2008-02-03T02:06:38Z")

</div>

Hey guys, just getting to grips with scrolling text, could somebody please point me in the right direction for correcting this error message?

Thanks.

**Error** Scene=Scene 1, layer=Content Box, frame=49:Line 1: Statement must appear within on handler  
scrollbox.scroll += 1;

**Error** Scene=Scene 1, layer=Content Box, frame=49:Line 1: Statement must appear within on handler  
scrollbox.scroll -= 1;

Total ActionScript Errors: 2 Reported Errors: 2
