RE: [Flashcoders] using eval(array element)

2007-06-13 Thread Merrill, Jason
month = eval(months[j+1]); trace(month); //traces undefined; Were is month defined? I didn't see it declared anywhere in your code until you tried to eval() it. And why do you think eval() is useful over [] in this case? Jason Merrill Bank of America GTO Learning

Re: [Flashcoders] using eval(array element)

2007-06-13 Thread sean
In your example code, 'month' IS undefined. Array first element is [0] and as your trace says trace(stringArray[j+1]);, that's exactly what you'll get the first time through. Also, the for next loop won't increment the j variable until the loop is completed. Let me know if I have misenterpreted