Hi,
It happened to me once with a big project: Flash would break during compilation 
and throw this error.

What worked for me: 
I kept removing classes from my project until Flash would compile the file 
correctly.
Then, I worked around the way I was using some classes (that were central to 
the project) by trimming them into multiple classes. Sometimes, this happens 
because Flash keeps importing a class that is used across the whole project. 
All in all, it was a misconception of the project that led me to this error. 
Try to think about the central (major) classes you use in your project and try 
to know exactly what these are doing: maybe there is a cross reference 
somewhere.

Another solution would to .swc a part of your classes, which means that these 
wouldn't be 'compiled' during compilation time ,hence releasing a lot of memory 
for Flash.
Another solution would to use Flex and give more memory to its compiler 
(there's a command out there, Google knows it).

hth,
Cedric

> 
> I am starting to see this error more and more when testing apps:
> 
>      Line 1    5005: Unknown error optimizing byte code.
> This is in a fully updated Flash CS5 Professional, and occurs when working 
> with either AIR or Flash apps. No other compile errors; and the app does not 
> load.
> Moving past my love of tools that report ‘unknown errors’ within their own 
> processing – it does not seem that this has been resolved anywhere in my 
> searches.
> The only temp solution is to get out of Flash and reload the app, which 
> allows a number of more compiles, before the error pops up again.
> Anyone else seeing this error occur?
> Any thoughts on solutions?
> File, Publish Settings, Flash tab, [x] Compress movie has no bearing.
> Thanks
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to