# Scrolling text on rollover

**URL:** https://forum.kirupa.com/t/scrolling-text-on-rollover/296
**Category:** flash
**Created:** [July 12, 2002, 3:41pm UTC](https://forum.kirupa.com/t/scrolling-text-on-rollover/296 "2002-07-12T15:41:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![steveguberman](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@steveguberman](https://forum.kirupa.com/u/steveguberman)
#### Post date: [July 12, 2002, 3:41pm UTC](https://forum.kirupa.com/t/scrolling-text-on-rollover/296/1 "2002-07-12T15:41:35Z")

</div>

In the tutorial for Flash 5 it shows how to do a scrolling text box on clicks, the script is for press and release. I am trying to figure out how to do it on a rollover rather than a press or a click. Can someone help me?  
Here is the tutorial:  
[http://www.kirupa.com/developer/flash5/scrolltext.asp](http://www.kirupa.com/developer/flash5/scrolltext.asp)

\<b\>\<i\>thanks,  
Steve\</i\>\</b\>

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 12, 2002, 3:58pm UTC](https://forum.kirupa.com/t/scrolling-text-on-rollover/296/2 "2002-07-12T15:58:41Z")

</div>

It should simply be a matter of going into the ActionScript for the Up and Down arrows, and changing the

on (press)

line to read

on (rollOver)

That should fix it. If you’re in Normal editing mode, the options will appear at the bottom of the coding pop up, leaving you to tick the ones you want.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 13, 2002, 12:46am UTC](https://forum.kirupa.com/t/scrolling-text-on-rollover/296/3 "2002-07-13T00:46:41Z")

</div>

actually no, that wont work. I think she wants continueous scrolling while the mouse is over it. If she did it your way, it’ll just go up or down by 1. Here’s what you do. Create a movie clip with 3 frames on it. The first is a blank keyframe with a stop command. The second contains the code that tells the flash to +or-1 to the position of the text. The last frame tells the movie clip to go to frame 2 therefor repeating the process. All you have to do now is get the right targetting and you’re set. When your mouse rolls over the button, it activates the movieclip which keeps looping until rollout. There you go, hope this helps.
