I just found a nasty little bug in Flash CS4. One line of code will result in a project that compiles with no errors and yet no trace statements work either.
Simply put the following line of code anywhere in your project (including in any class, or on any frame on the time line):
var version:Number = 0.0.1;
That’s it! Your project will (seem to) compile with no errors.
You won’t get any trace output either.
Imagine burying this line of code in a random class in a project that has hundreds of classes. How could anyone find it?
I’m Tellin’ Y’all It’s a Sabotage.
I am running Flex 3 on Windows Vista. For some reason, attempting to profile an application would always fail. There were no errors or warnings… the app would launch in my browser and simply run without profiling.
The following work around worked for me:
- In Flex 3, click on Window > Preferences…
- In the Preferences window, choose Flex > Profiler > Connections
- Set the Port number to something other than 9999. 10001 worked for me.