Hi there
I feel dense. I’ve been using arrays and for loops in flash for some time now. Mostly successfully. But I’m missing some important understanding of how they really work. Here’s the simple code that turns my head around and makes me realize I know nothing.
//_root.termLoadVars.numberTerms = 13 from an external doc
for(i=1;i<_root.termLoadVars.numberTerms+1;i++){
_root.term_array.push(_root.termLoadVars["term"+i])
};
When I trace _root.term_array later in the code, it gives me the list of words and then a ton of 'undefined’s. When I trace _root.term_array.length it says it’s got 130 items. In my mind it should only have 13. What am I missing?
Please straighten out my bent brain.