Will it be possible for you to share your projects to help us understand the issue better?
Engineering Manager, Flash Builder
sure, where should I send one?
I seem to have narrowed my issues down to this. In any given class, I don't get Problem reporting after a certain point. A complete mystery. But the way I can fix it is by just referencing that class in the document class. Then all of the sudden , all of the errros pop up in my Problems panes. Now I have no reason whatsoever to declare this class anywhere so it's a bit frustrating.
Thought maybe that could narrow down what the issue is. I can send over a project , it would do no good to provide any sort of code here.
Thanks for any help.
Flash Builder doesn't compile all files in your project. It only compiles files that are referenced and needed by that project's applications, modules or runtime css files.
If you create a new actionscript class or MXML file and do not use it, the compiler doesn't process it unless you refer to it.
P.S: This is something that took a while for me also to get used to
I'm not refering to that. I just mean at author time. If I write someVar = "foo", but I never declared that var in that class, I should get an error in my Problems pane telling me of the compiler error. I shouldnt have to declare the class I'm writing somewhere in order to get warnings on missed imports, unknown vars, etc when I'm writing the class. This alwasy just STOPS working. It always works fine initially with a new class I create.
BTW, thanks for responding. I hope I'm explaining it correctly.
Or maybe it just NEVER worked, maybe I'm wrong. I'm ultimately compiling in Flash so of course Flash will give me the error b/c i compiles differently.
So basically, when I'm working in Flash Builder, I won't get compile error warnings if the class I"m writing is not declared first some where else? Like if I'm writing a class that will get added sometime later in runtime? I swear this worked before. Carelessly writing 'sdfdsfdsfdsf' somewhere in my class should give me SOMETHING.
> Or maybe it just NEVER worked.
Yes, it never worked. Flash Builder doesn't process a file unless it is used (directly or indirectly) by an Application, Module or Runtime CSS file.
> Carelessly writing 'sdfdsfdsfdsf' somewhere in my class should give me SOMETHING.
Not until it is used.
OK, this whole time I thought it was broken. This makes Flash Builder no fun for Flash Applications
Thanks for the clarification.
I see the absolute identical problem.
After my last edit - no syntax errors - Flash Builder no longer compiles a project.
Restarted Flash Builder. Created a new project and copied all sources. Nothing help. It just doesn't create the binary.
I see two problem reports.
Most of the time this one: An internal build error happened. See the error log for further details.
Then, suddenly, this one appears: Classes aren't allowed to be defined inside other classes.
Opened a bug report.
Mac OS X Lion.
I found a solution for Flash Builder not compiling SWFs.
1. Just remove your project from Package Explorer, widthout deleting files of course (right click on project name -> delete)
2. Close Flash Builder.
3. Check your process explorer if you have Flash Player running, if so, kill the process (ctrl+alt+del)
3. Import your project to Package Explorer (right click -> import -> file system)
4. It should work as intended now.
If it helps you - I am very glad.
Don't hesitate to thanks-email me