I'm trying to assign the textfile to load through a variable instead of hardcoded. and I'm not sure what I'm missing.
understand I basically created a test harness in order to test the concept, I have the data loading from a flashvar normally.
text1.text = "michael080900.txt";
text3.text = '"' + text1.text + '"';
if I put "michael080900.txt" in the my_data.load() the code works perfectly. everything I want to happen does.
however, I'm not sure what I'm missing when I attempt to load it through a variable. any insight would be truly appreciated.
my_data.load(text3.text);
Ned,
Thanks for the reply, it led me to the answer.
I had a piece of example code that I followed that had this line in it.
my_data.load("textfile.txt")
which led me to believe that if I wanted to load a textfile that was dynamically named and generated externally, that I needed to provide that name through a variable, and would need the quotes.
<param name=FlashVars value="myVariable=Michael011852.txt&mySecondVariable=0.30000" />
so I was attempting to add "quotes" around my flashvar data , but, that is what I get for thinking.
Apparently all I had to do the whole time was this in order to get it to work.
my_data.load(myVariable)
go figure. doh!
North America
Europe, Middle East and Africa
Asia Pacific