the story - I'm been working on a large-scale Flash game for the past 13 months, and a few months ago I was encountering an error message when trying to export saying, "Error creating Flash movie. There was not enough memory available." Here is a screenshot <http://www.snubbyland.com/uploads/220.jpg> This isn't due to large videos or photos in the file, it's because theres a huge amount of frame by frame animation, so I can't just reduce quality.
I was off of a crappy laptop so at first I just bought a new computer with tons of ram because I didn't realize the software was an issue. This did not change anything (though I can run flash with less lag).
Then, I decided to do as much optimizing as I could. After a few months, all opimization possible as been done, and I have reached the point where I get the error again.
Then, I decided to cut the main file up into smaller pieces and link them together. This worked, but now some individual pieces require too much memory and get the error.
Then, I researched paging files and tried creating one. This had no success and actually made things worse.
THE QUESION - How can I make Flash allow me to use more memory, or is there a specific way a paging file or something like that could be created that would help. Anything that would help with this problem. If you are able to actually help, I can paypal you 100 bucks. However, I'm worried there is no solution...
I found this thread: http://board.flashkit.com/board/showthread.php?t=520705. It says that it had nothing to do with the file size, it had something to do with a corrupted image that caused an infinite loop in export thus ran out of memory. Since you've got a lot of animation, you too might have some corrupt images.
How long did the export take? Was it like a long hang before it notified you that it ran out of memory? I tried importing an image into flash library, then i edited the image in a text editor to make it corrupt. Then i went to update the image in the library, and it hanged with 100% CPU usage, probably an infinite loop which may have led to the out of memory problem.
Yeah I've seen that. I don't have a single bitmap in my library, it's all vectors. There are like 1000 symbols, mostly movieclips. Is it possible for one of them to be corrupted? How would I figure out which one?
I'd say error or no error it takes about 20 seconds to export. I think when I do get the error, it's unlikely that it's a corrupted symbol/image though because it will stop happening if i was to say cut the file into two pieces and test each piece (each piece would export fine). I just can't cut it into pieces anymore.
Is there a limit in Flash that says you can't take up more memory than x amount? Is there a way to raise the amount or allocate more memory to Flash?
Is it impossible to cut it more into pieces or it's just too complicated already? Hmm vector graphics.. I don't think they can get corrupted.. Is it possible you create something that can reproduce that problem and upload somewhere so we can see it? It's difficult to figure a solution if there's nothing to look at. I have no idea about any of those memory limits in flash... maybe an Adobe employee would know but they rarely post replies.
I cannot cut it up anymore because that would send the player to too many different pages. I only want to do it at certain points if I have to, like at the end of a level or whatever.
Here is the first level file (not done, but can't fit more into it), there are files before/after it but they are fine. Please don't post this anywhere, obviously.
When in a fight there is a ton of animation for all the items, special attacks, enemies, etc. and it's all frame by frame, so that takes up a good chunk of space probably.
Thanks for trying to help so far bud.
Europe, Middle East and Africa