The reason you're having trouble is that the project takes up too much memory to compile. This is probably due to the large number of images in your project, and that they are all embedded. You can make some tweaks to allow the compiler to use more memory, but I would highly advise that you compress your images, and convert all large images to be linked rather than embedded.
To allow the compiler to use more memory
- Go to the install folder for Flash Catalyst (on my Mac, /Disk/Applications/Adobe Flash Catalyst Panini)
- Open the sdks folder, then the folder it contains, then the bin folder
- You should now be someplace like /Disk/Applications/Adobe Flash Catalyst Panini/sdks/[sdk version]/bin
- Open jvm.config in a text editor and replace the line
- Save the file, restart Catalyst, and reopen your file
How did you create this project? Did you import an AI or PS comp and then convert it to components? Did you import all of your work as image files and then create everything in Catalyst?
We had wondered about that, but since we had already gone through the 'Java Heap Space' error, I guess we thought we were out of the woods as far as memory limitations were concerned. But now that I think about it, that makes a lot of sense since general memory usage is a separate issue. We were actually in the middle of linking the large images when this began happening, I guess that error message was quite a nasty distraction.
We built the home page's framework as one AI document and imported it in the beginning, then built most of the other components within the program as we needed them, duplicating them from templates to retain their interactions. The article pages were each imported from illustrator for the sake of formatting, but on second thought that might not have been the most memory-efficient method, we might need to rethink that.
We'll try your method and let you know what happens, thank you so much for the help!
It looks like that did the trick, it's able to compile the project again! Thanks so much for your help!
That's great to hear! I would just suggest moving your large images to be linked. When they are embedded, the compiler has to load them and place them in the swf file. If it's possible to cut down on the number of image assets, or compress them, that would help as well.
Do you mind if I share your project with the Catalyst team to further diagnose the problem?
Of course you can, feel free to use it for whatever you need. I hope your team can find some use for it!
Thanks again for all of the help!
I have also received this error, but my project is very simple. I imported the design from AI using only 5 vector boxes (with simple 2-color gradient), and Arial text. I did use a proprietary font, but I outlined the font for the five titles (just 5-10 words). I also went in and edited the jvm.config file (line: java.args=-Xmx1024m -Dsun.io.useCanonCaches=false) as directed.
What I'm saying is that this "unable to publish due to an error in the code" in my case does not have to do with the size of the file in my case. This is project is a very simple mini-site. I only have 6 states, 5 arrow buttons and correllating text for each button.
I was hoping Flash Catalyst would help me create quick mini-sites, but I'm having more problems than it seems to be worth.