hey, im a newbie here… and my first post too… yay!
anyway… i ve got this problem:
onClipEvent (enterFrame) {
onRollOut = function () {
var distance = _root._x-xcenter;//this will make pics slide from right to left
_x += (distance*speed);
if (_x>0) {
_x = -2752;
}
if (_x<-2752) {
_x = 0;
}
};
onRollOver = function () {
stop();
};
}
well… i took the code from the infinite menu tutorial… and tweak it juz alil to make the pics slide from right to left…
so… i was thinking of doing a picture links where if the mouse goes over one of the pictures, the sliding will stop… and when it goes out of the picture, it will continue to slide…
the current one there gives me a jerky start-stop sliding motion as it just loops aroud the code…
so… i tried doing an if() statement on it but it doesnt work… it just stalls there… no sliding…
im wondering if it really uses the if() statement… then my conditions might be wrong… cause i really dont know what to type for the conditions…
or is there a different solution to this?
pls…someone shed some light on this… thanks in advance…