PDA

View Full Version : relative scrolling text and navigation


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?

grimm
03-15-2002, 07:36 PM
i figured that part out the problem I'm having now is that the last scene, gets locked, i can't moe backwards from the last scene. any ideas, as stated before i followed the tutorial as best I could?

grimm
03-15-2002, 07:48 PM
i figured that part out as well, the tutorial is very good, the naming of the instances on the script layer of the bar movie was a bit vague and that is where i got confused. I had labeled the last frame of the forward group f5 when it should have been b5 since it can only go backwards from there. as a newbie I have very little experience with it... thanks though (these tutorials are amazingly great for the beginner):D