[FONT=Tahoma]Hi,
I have a small problem, i used the tutorial from kirupa ( http://www.kirupa.com/developer/mx2004/hide_scrollbar.htm ) for my scrollbar, but it’s not working. I load the text dynamically from a text file with a typewrite effect. Here it’s the code:
//[/FONT][FONT=Tahoma]scroller = UIscrollBar
//current_home = dynamically text field
[/FONT][FONT=Tahoma]scroller._visible = (current_home.maxscroll > 1);
current_home.onChanged = function() {
scroller._visible = (current_home.maxscroll > 1);
};
//
var str:String;
var sInt;
var count:Number = 0;
function writeIt () {
current_home.text = str.substring (0, count);
count += 1;
if (count > str.length)
{
clearInterval (sInt);
}
}
loadText = new LoadVars ();
loadText.load ("home.txt");
loadText.onLoad = function () {
str = this.home;
sInt = setInterval (writeIt, 10);
};
current_home.embedFonts = true;
System.useCodepage = true;
Do you have anyidea how can i manage to do this to work?
Thank you, BTIBIA
[/FONT]