I have just witnessed something I have never seen before while coding in AS3. Two identical sets of code with the exception of one line, a simple trace statement, have different outputs. The trace statement is actively affecting the compile. I actually need the trace statement in the code, uncommented, for everything to work properly. To see the differences between the versions, open one version in two separate tabs in your browser. You will notice that the red (or blue) guy’s rotation is off.
test with trace statement | test without trace statement
and heres the code:
buddyArray[id].mesh.rotationZ = transformObj.rotationZ;
trace(”rotation Z: ” + buddyArray[id].mesh.rotationZ); // corrects rotation, but why!?
