Script: Scrolling TextCreate a dynamic textfield, click on it, give it a unique name and get the scrollbar from the components menu. Attach the scrollbar untill it fits automatically.loadVarsText = new loadVars(); loadVarsText.load("text/cancer.txt"); //assign a function which fires when the data is loaded: loadVarsText.onLoad = function(success) { if (success) { //Now that we know the data is loaded, //set the text content of the Text Field //with the instance name "scroller" equal to the //contents of the variable scroller.html = true; scroller.htmlText = this.cancerText; } else { trace("not loaded, try again!"); } } |