Compile times

Box2D takes quite some time to compile which can make tweaking small things and making small changes difficult.

Is there some way to speed increase it's compile time?
Maybe somehow compile it only once and use the compiled version instead of compiling it each time.
Are you compiling with the Flash IDE? as in CS3 or CS4? In CS4 at least there is a little known option that can speed up compile times by a factor of four or more. Its in publish settings, flash tab, next to the script drop down( where you choose flash 9/10/ whatever it is) choose the button marked settings. This opens up a new window with many options. Uncheck the box marked 'Warnings Mode.'
I'm not sure where this option is in CS3, or if its available.

As for compiling box2d once. You could compile it as a .swc and link to that. PushButtonEngine does this and so does the alchemy port. I don't know how to do it personally so I can't help you there. However I know that, with a plugin, FlashDevelop can export a .swc.
I'm using CS4 and switching of Warnings Mode did help a lot, but what exactly does it switch off?
VengantMjolnir, you are my (latest) hero. I've got the Box2D library and some google analytics swcs, and every time I compile it takes around two minutes. This is going to save me tangible HOURS.

wooooooo
From the adobe docs:
Quote:
You can control the types of compiler warnings that the ActionScript compiler generates in the Compiler Errors panel. When the compiler reports an error, you can double click on the error to navigate to the line of code that caused the error.

1. Select File > Publish Settings.
2. Click the Flash tab.
3. Click the ActionScript Settings button.
4. Select among the Errors options:
*

Strict Mode causes warnings to be reported as errors, which means that compilation will not succeed if those errors exist.
*

Warnings Mode causes extra warnings to be reported that are useful for discovering incompatibilities when updating ActionScript 2.0 code to ActionScript 3.0.


http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WS3e7c64e37a1d85e1e229110db38dec34-7faea.html

ByteArray.org has another description of it that might be helpful

http://www.bytearray.org/?p=931
Incidently, he also has instructions on how to get to it in cs3.

I use flashdevelop for writing my code and the IDE is really just a compiler to me. Since flashdevelop does a good job of highlighting things for me I always keep it off.
yeah, the compiling time is killing me too.
i think i will try the swc approach.

Seems i need a pointer to every class i want
to use in box2d.
Quote:
publish settings, flash tab, next to the script drop down( where you choose flash 9/10/ whatever it is) choose the button marked settings. This opens up a new window with many options. Uncheck the box marked 'Warnings Mode.'


Thanks so much for this Vengant. Just dropped my compile time to 33% of what it was.

Wish I had known about it a few hundred compiles earlier now.

Original thread: https://box2d.org/forum/viewtopic.php?t=4677