Hi all,
Well, I’m a newbie in AS, I found a easy srollbar tutorial, it’s working, but I would like to have a separate txt file, to edit the text quickly…
I think it’s with this command “loadVariablesNum();” but it’s does work with me :-\
This the code I have :
[AS]onClipEvent (load){
daTextBox = "<P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#5B5642\"><B>my text go there</B></FONT></P>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame){
if( frameCounter % speedFactor == 0){
if( scrolling == "up" && daTextBox.scroll > 1){
daTextBox.scroll--;
}
else if( scrolling == "down" && daTextBox.scroll < daTextBox.maxscroll){
daTextBox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}[/AS]
What should I do now ?
My txt file is called txtnews.txt, it’s in the same folder…
Tons of thanks in advance !