[left]i=1;[/left]
textFiletoLoad=“mytextfile”+i;
textButton.onPress=function(){
MyLv.load(textFiletoLoad);
trace(textFiletoLoad);
}
textButton.onRelease=function(){
if(i<10){
i++;
textFiletoLoad=“mytextfile”+i;
}
}
I got this code from Nantrop. I loads external txts when the button is pressed.
But it has no target dynamic textfield so these textfiles are loading but not visible anywhere… If you know where to put the line that assign a place for the loaded txts help please
thanks in advance.