JVM heap size, or why Flash is not compiling
Its been a while since i write something into my blog, but I want to share my experience over this topic.
As you develop project for sometime one Flash, and your code get bigger and bigger:
Source Code Statistics:
Code lines: 54 937 (59%)
Comment lines: 20 347 (21,9%)
Blank lines: 17 847 (19,2%)
Total lines: 93 121
You will reach in some point where Flash is not able to compile your project. It just throws flash with no action script at all or blank scene.
Thanks to this topic: Giving Flash CS3′s compiler a little breathing room, I manage to overcome this problem.
I will write the steps in win7, because I use this OS.
- Right click on Computer
- Choose properties
- Choose Advanced system settings
- Choose Advanced tab
- Environment Variables…
- Click on New to add variable
- Variable name: JAVA_TOOL_OPTIONS and for variable value add -Xmx@M, where @ is the size you want your Java virtual machine to use, it can be 256, 512, 1024 (Example : -Xmx512M or -Xmx256M)

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution 2.5 Bulgaria License.
You can skip to the end and leave a response. Pinging is currently not allowed.

i have ActionScript project with this size: http://img693.imageshack.us/img693/1759/68166844.jpg
and have no problems with compiling at all !
I use this code analyzer
http://enginyoyen.com/blog/eng/actionscript-code-analyzer/
how big is your fla?
2,34 Mb
hmm, probably is because of the size because mine is 30 MB.
One friend show me this topic: http://forums.adobe.com/message/2854938 it is really helpful if you have CS5