I’m trying to get a txt file with html to load in my flash video. The user clicks a list option and the file is supposed to load in a textbox on the same page.
Here’s the code I have so far. I’m relatively new to Flash so I have no idea what I’m doing wrong. The text is called internship.txt. The “ladida” section won’t be there in the end. It’s there to just prove that clicking the list option does work and will indeed bring something up in the textbox.
My text file starts with &intern= and then it goes right into a bold tag.
function display(joblist){
var j = joblist.getSelectedItem().data;
if ( j == 0)
{
var intern = new LoadVars()
intern.load("internships.txt");
intern.onLoad = loadTextVariables;
function loadTextVariables(){
txtDisplay.text = this.intern;
} ;
txtDisplay.text = "ladida
";
txtDisplay.text += "info about the event";
}
if ( j == 1)
{
txtDisplay.text = "boooo
";
txtDisplay.text += "info about the event";
}
}
jobslist.setChangeHandler("display");
Thanks in advance.