PDA

View Full Version : Scrolling Text Question


nnwsteve
11-17-2001, 10:37 PM
I recently completed the "Scrolling Text (dynamic/static/loaded and HTML)" tutorial located under the imtermediate section. I'm having a bit of a problem getting it to work. Rather than having it execute on the main stage, I'm using it inside of a movie clip. Here's how I have my coding laid out for the up and down buttons inside the movieclip, "buttonspin".

Up Button:
on (press, rollOver) {
_root.buttonspin.up = true;
}
on (release, releaseOutside, rollOut, dragOut) {
_root.buttonspin.up = false;
}

Down Button
on (press, rollOver) {
_root.buttonspin.down = true;
}
on (release, releaseOutside, rollOut, dragOut) {
_root.buttonspin.down = false;
}

Controller Movieclip:
if (_root.buttonspin.up) {
_root.buttonspin.text.scroll += 1;
} else if (_root.buttonspin.down) {
_root.buttonspin.text.scroll -= 1;
}
gotoAndPlay (1);

And that's pretty much all. Am I using these variables correctly or is there some sort of error that I'm constantly passing up that needs correcting? Any help would be appreciated.

Thanks,
Steve

poab
11-19-2001, 02:43 PM
Hi,

Could be completely wrong, but I think variables need to be inside inverted commas.

cheers.

Jesse
11-20-2001, 06:14 AM
nah the code looks fine to me. when you say it's not working, waht's it doing and not doing?