trace from external file
Hi everybody,
I am working on a project and I am using "trace()" to check the values that I load from an external file, in my case a csv file.
my code which fails is the following:
trace(n1.text = loadedData[0][0]);
trace(n2.text = loadedData[1][0]);
trace(n3.text = loadedData[2][0]);
trace(n4.text = loadedData[3][0]);
trace(n5.text = loadedData[4][0]);
trace(n6.text = loadedData[5][0]);
trace(n7.text = loadedData[6][0]);
trace(n8.text = loadedData[7][0]);
if
(n1.text == loadedData[0][0])
{
(n1.text = loadedData[0][0]);
(s1.text = loadedData[0][1]);
(t1.text = loadedData[0][2]);
(c1.text = loadedData[0][3]);
}
else if
(n1.text == "")
{
gotoAndStop(6)
}
The problem is that I need to prepare a template with 8 text fields but the csv file that I load sometimes has 6 7 or 8 lines.
So when I trace 8 lines from my csv and there are less than 8 it doesn't work.
any suggestions?