Slow flash cs5 compilation
I am developing a RIA with Flash Professional CS5. Although there are not many class, it takes 1 minutes to compile. This slowness breaks quick code&test cycle. I do not know how to speed up the compilatio开发者_高级运维n time. Almost every as-3 class has a corresponding MovieClip in the library. Is it because of this? Also there are so many graphical item in the library. Are those slow compilation? Or What is your advice to speed up the compilation time?
- Disable Warnings Mode. File -> Publish Settings -> ActionScript Settings
- Use lower JPEG quality. File -> Publish Settings
- Disable Compres Movie. File -> Publish Settings
- Disable Include XMP metadata. File -> Publish Settings
- Disable (if you enabled before) Generate size report. File -> Publish Settings
- Optimalizate your as code.
And don't forget to put it all back when you finish testing.
One advice I can give you is to go to Publish Settings/Flash and turn off "Compress Movie". I have a feeling it will save a couple of seconds...
Other then that, I've learned to live with it... The worst is when you are working with a huge framework like away3d...
I've found that images, audio and video can really increase the compilation time. Can you use placeholders until you get your code finished?
Are you using embedded fonts? Embedding an entire font set can add a huge amount to both compilation time and SWF size. Be sure to only embed characters that you are going to need.
精彩评论