unplugged_web Posted October 2, 2007 Share Posted October 2, 2007 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 More sharing options...
unplugged_web Posted October 2, 2007 Author Share Posted October 2, 2007 Right next time I'll get my head in gear before I start panicking I forgot to change _root or _parent Sorry for wasting anybodies time Link to comment Share on other sites More sharing options...
Synook Posted October 7, 2007 Share Posted October 7, 2007 Don't worry, we all learn from each other's mistakes Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.