PDA

View Full Version : limit to amount of text in dynamic textfield


jubjub_
04-02-2003, 11:01 AM
I have a dynamic scrolling text field and i want to know if there is a limit to the amount of characters you can add through actionscript.

The text field work with other pages but when i put it on this page it doesn't work.
onClipEvent (load) {
this.daTextBox = "it has bout 2700 characters here";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && this.daTextBox.scroll>1) {
this.daTextBox.scroll--;
} else if (scrolling == "down" && this.daTextBox.scroll<this.daTextBox.maxscroll) {
this.daTextBox.scroll++;
}
frameCounter = 0;
}
frameCounter++;

Your promote response would be excellent,
Thanks,

Trent

tigei3281
04-05-2003, 12:53 AM
Hey what up?

Are you trying to limit the number of characters in the text box?