Hello.
I’m trying to set up a scrolling text field that scrolls slowly when you roll over the arrow buttons, but speeds up when you click the arrow buttons. I’ve been able to do one or the other, but not both functions on the same buttons. Here’s a link to the site I’m working on: http://inspiredthrumovement.com. Right now I have a rollover set up, with my text scrolling from behind a mask. It scrolls rather slowly, so I want people to have the option of speeding up the scroll on click.
This is my actionscript on the up button:[INDENT][SIZE=1][COLOR=Indigo]on (rollOver) {[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] tellTarget (“control”) {[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] gotoAndPlay(2);[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] }[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]}[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]on (rollOut, dragOut) {[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] tellTarget (“control”) {[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] gotoAndStop(1);[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] }[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]}[/COLOR][/SIZE]
[/INDENT][SIZE=1]
[SIZE=2]This is on the down button:
[/SIZE][/SIZE][INDENT][SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo]on (rollOver) {[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo] tellTarget (“control”) {[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo] gotoAndPlay(5);[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo] }[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo]}[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo]on (rollOut, dragOut) {[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo] tellTarget (“control”) {[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo] gotoAndStop(4);[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo] }[/COLOR][/SIZE][/SIZE][/SIZE]
[SIZE=1][SIZE=2][SIZE=1][COLOR=Indigo]}[/COLOR][/SIZE][/SIZE][/SIZE]
[/INDENT]I have a control movie set up with the following actionscript:
layer “up”:[INDENT][SIZE=1][COLOR=Indigo][COLOR=Black]FRAME 1:[/COLOR]
stop();
[/COLOR][/SIZE][SIZE=1][COLOR=Indigo][COLOR=Black]FRAME 2:[/COLOR][/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]y = getProperty("_root.text.content", _y);[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]if (y>-1) {[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] gotoAndStop(1);[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]} else {[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo] setProperty("_root.text.content", _y, y+6);[/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]}
[/COLOR][/SIZE][SIZE=1][COLOR=Indigo][COLOR=Black]FRAME 3:
[COLOR=Indigo]gotoAndPlay(2);
[/COLOR][/COLOR][/COLOR][/SIZE][/INDENT]layer “down”:[INDENT][SIZE=1][COLOR=Indigo][COLOR=Black]FRAME 1:[/COLOR]
stop();
[/COLOR][/SIZE][SIZE=1][COLOR=Indigo][COLOR=Black]FRAME 2:[/COLOR][/COLOR][/SIZE]
[SIZE=1][COLOR=Indigo]y = getProperty("_root.text.content", _y);
if (y<-520) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}
[/COLOR][/SIZE][SIZE=1][COLOR=Indigo]
[/COLOR][/SIZE][SIZE=1][COLOR=Indigo][COLOR=Black]FRAME 3:
[COLOR=Indigo]gotoAndPlay(5);[/COLOR][/COLOR][/COLOR][/SIZE][/INDENT]Any help adding a faster scroll function to the buttons (on click) would be much appreciated!