Hello everyone and happy new year.
I was wondering if I can point to a variable of a .txt file.
My .txt file has four variables:
[LIST]
[]&main= text here&
[]&title = title here&
[]&main2= text2 here&
[]&title2 = title2 here&
[/LIST]
I load the first Variable on my dynamic textfield successfully.What I want to do now is, to display the second variable on the same dynamic textfield when button “next” is clicked.
Actually I am using this code: (where “[COLOR=Blue]main[/COLOR]” is the first text variable and “[COLOR=Blue]title[/COLOR]” the second one).
var myLoadVars:LoadVars = new LoadVars;
myLoadVars.load("mytext.txt");
myLoadVars.onLoad = function (success:Boolean){
if(success){
my_txt.html = true;
my_txt.htmlText = this.[COLOR=blue]main[/COLOR];
title_txt.html = true;
title_txt.htmlText = this.[COLOR=blue]title[/COLOR];
}
};
Any ideas?:cowboy: