MX2004 I need a text field that keeps dynamically loaded text visible.
Hi,
I am using the “text area” component of MX2004 to take in text from a feeder string by using “set Interval” to make the text appear in stages, as if it was being written. Now all this works great, except when the text fills enough of the text area & the scroller bar appears, the text then becomes lost under the area defined by the text area. In other words the text is being printed out, but you need to scroll to see it.
Now I would like the scrolling to be automatic so as each new line appears in the box, the scroller compensates for this & scrolls down to allow it to be visible.
How would I go about this please.
Fla attached.
Maybe you can adapt this...
Code:
stop();
var holdEm_str = "Steamed Sea Bass Cantonese Style 1 1 12lb. whole sea bass or striped bass with head and tail, cleaned, scaled, and gills removed Rinse the fish inside and out with 14 cup of wine.Select a round or oval platter that's large enough to hold the fish but will fit inside the top of a steaming utensil. This could be a traditional Chinese bamboo or metal steamer, or a Westernstyle clam steamer.Place the fish on the platter and set platter in the top of the steamer. Cover and steam over boiling water 10 to 15 minutes. Meanwhile, prepare the sauce base by combining the 2 tablespoons of wine, garlic, scallions, ginger, and sugar in a small bowl.";
var temp_str = "";
var counter = holdEm_str.length;
var down = 0;
function addLetter() {
if (down < counter) {
past_txt.text += holdEm_str.slice(down, down + 1);
down++;
past_txt.focusTextField.scroll = past_txt.focusTextField.bottomScroll;
} else {
clearInterval(letterTime);
}
}
var letterTime = setInterval(addLetter, 75);