Hi,
I’m creating and update module for a site I have to re-create, but I’m having trouble with my news scroller.
If I double-click on the scroll arrows it goes wrong, U can see it at http://www.goadesign.be/nieuws.html
The code i’m using is
scrollDown_mc.onPress = function() {
var denTellr = 0;
if (Root_mc._y>-((iTeller-6)*18)) {
Root_mc.onEnterFrame = function() {
if (denTellr<6) {
scrollDown_mc.enabled = false;
denTellr++;
Root_mc._y = Root_mc._y-3;
//trace(denTellr);
} else {
remove(Root_mc.onEnterFrame);
}
scrollDown_mc.enabled = true;
};
}
};
//
scrollUp_mc.onPress = function() {
var denTellr = 0;
if (Root_mc._y != 0) {
Root_mc.onEnterFrame = function() {
if (denTellr<6) {
scrollUp_mc.enabled = false;
denTellr++;
Root_mc._y = Root_mc._y+3;
//trace(denTellr);
} else {
remove(Root_mc.onEnterFrame);
}
};
}
scrollUp_mc.enabled = true;
};
Can somebody help me plz :be: