Jump to content

Scrolling buttons for text....problem


unplugged_web
 Share

Recommended Posts

Please can somebody help me, I've got some buttons that I use to scroll through a block of text 18 lines at a time. They work perfectly, but I want to change them so that they scroll continuously until somebody releases the mouse. At the moment they are set to:

on (press) {	this.scrollPrivacy_txt.scroll = this.scrollPrivacy_txt.scroll-18;}

I tried changing it to:

on (press) {	this.scrollPrivacy_txt.scroll = this.scrollPrivacy_txt.scroll--;}

but then it didn't work at all.If it's easiler I don't mind changing it to RollOver and adding a RollOut although I tried adding:

onClipEvent (enterFrame) {	if (scrollUp) {		if (_root.scrollPrivacy_txt.scroll < _root.scrollPrivacy_txt.maxscroll) {			_root.scrollPrivacy_txt.scroll++;		}	}	if (scrollDown) {		if (_root.scrollPrivacy_txt.scroll >1) {			_root.scrollPrivacy_txt.scroll--;		}	}}

to the movieclip containing the buttons and then:

on (rollOver) {	scrollDown = true;}on (rollOut) {	scrollDown = false;}

and

on (rollOver) {	scrollUp = true;}on (rollOut) {	scrollUp = false;}

to the buttons, but again this didn't work. :) :) Thanks in advance for any help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...