Question
Actionscript compiler finds an error but doesn't say so!
Hi! I just spent about an hour very frustrated, because
suddenly Flash was ignoring 100% of my actionscript. At first I
thought I was having a bug like
these
people, but I soon realised it would still show compiler errors
if iI introduced any typos into my script...
Long story short, I discovered my code would still compile if I commented out some of my actionscript, and I tracked it down to a single line: I had accidentally written
var endPt:Point = new Point(curX+=xOff,curY+=yOff);
A silly mistake, I simply wasn't paying attention..
the problem is, neither was the compiler?? I received NO Compiler Error messages, Output window messages, absolutely no feedback from flash at all, just a complete absence of ActionScript in my SWF. It took me a while to realise it was an "invisible" compiler error that was giving me an SWF without actionscript in it. The debugger obviously wouldn't help me either since there was no AS to connect to.
Why was the compiler unable to tell me what line it found a problem on? Why would it not even tell me it had found a problem, just silently running my SWF instead?
Long story short, I discovered my code would still compile if I commented out some of my actionscript, and I tracked it down to a single line: I had accidentally written
var endPt:Point = new Point(curX+=xOff,curY+=yOff);
A silly mistake, I simply wasn't paying attention..
the problem is, neither was the compiler?? I received NO Compiler Error messages, Output window messages, absolutely no feedback from flash at all, just a complete absence of ActionScript in my SWF. It took me a while to realise it was an "invisible" compiler error that was giving me an SWF without actionscript in it. The debugger obviously wouldn't help me either since there was no AS to connect to.
Why was the compiler unable to tell me what line it found a problem on? Why would it not even tell me it had found a problem, just silently running my SWF instead?