Scene 1, Layer 'Layer 1', Frame 1, Line 1 1120: Access of undefined property counter.
So I am in an intermediate flash course right now, right at the beginning where everything is very introductory. We were told to download .fla file that gives an example of a run-time error. It's a simple for loop (I know javascript, so I can already make sense of it, and its written properly). Here is the syntax:
for (counter=1;counter<10;counter++) {
trace(counter);
}
it counts 1-9 rather than the desired 1-10. Easy Peasy, right? Well here is the problem:
When I open a new file, and write the EXACT same thing in the actions window so the files are pretty much identical (except for the file names) and then run it I get the compiler error of:
| Scene 1, Layer 'Layer 1', Frame 1, Line 1 | 1120: Access of undefined property counter. |
I even cut and paste the code from the file we were provided to my new file and it did the same thing but there is nothing wrong with the code.
I was using CS4 and have upgraded to CS6 and I am having nothing but problems with my flash program. Help isn't working, code hints aren't showing up, and then this. This worries me because what if I am writing a script for my class, and it's perfect, but it's giving me errors when there are none.
Any ideas people???
(I also just created another discussion in the Flash Pro - General forum in regards to my other problems if any keeners can help me out.)
Thanks for any help
