grimm
03-15-2002, 06:38 PM
I followed the tutorial exactly and my problem is that when it starts it automatically scrolls. the stop command dosen't seem to work. I don't know what I did wrong this is the code i used:
stop ();
// set startup variables - we don't want it scrolling away as soon as the file opens!
/bar:target = 1;
/bar:direction = "f";
// our 'director' function, which will control movements
function director () {
if (/bar:target</bar:current) {
// if we're going backwards then, set direction to backwards!
/bar:direction = "b";
} else if (/bar:target>/bar:current) {
// if we're going forwards then, set direction to forwards!
/bar:direction = "f";
} else if (/bar:target==/bar:current) {
/bar:direction = "null";
}
goto = (String(/bar:direction+/bar:current));
bar.gotoAndPlay(goto);
}
as i said it dosen't stop it just starts scrolling?
stop ();
// set startup variables - we don't want it scrolling away as soon as the file opens!
/bar:target = 1;
/bar:direction = "f";
// our 'director' function, which will control movements
function director () {
if (/bar:target</bar:current) {
// if we're going backwards then, set direction to backwards!
/bar:direction = "b";
} else if (/bar:target>/bar:current) {
// if we're going forwards then, set direction to forwards!
/bar:direction = "f";
} else if (/bar:target==/bar:current) {
/bar:direction = "null";
}
goto = (String(/bar:direction+/bar:current));
bar.gotoAndPlay(goto);
}
as i said it dosen't stop it just starts scrolling?