PDA

View Full Version : Pleease help, scrolling mcs on mouse down


daveyt1234
08-07-2005, 12:57 PM
hi guys, ive trawled through the forums and this question has been asked a few times but thye answers given dont help me out! hopefully someone can help me out..

i have a movieclip that is masked and scrolled using simple as
on (press){
if (scrolled_mc._y=<160){
scrolled_mc._y+30;
}
}


that works fine, but how do i also script the buttons so they work on mouse down so the user doesnt have to continuously press the button which could result in broken fingers?!


hope someone can point me in the right direction,most of the tutorials ive seen are for dynamic text or something else, nothing on scrolling a movieclip on mouse down!


many thanks.

david

sophistikat
08-07-2005, 11:05 PM
here's one solution for youon(press){
onEnterFrame = function (){
if (scrolled_mc._y <= 160){
scrolled_mc._y + 30;
} else {
delete onEnterFrame
}
}
}