Skip to main content
January 14, 2008
Question

5005: Unknown error optimizing byte code

  • January 14, 2008
  • 5 replies
  • 1222 views
Normally when I search for an error to get help on a resolutoin I can find something, this time, I've found NOTHING, not here, not google, nothing.. anyone know what "5005: Unknown error optimizing byte code" is? or am I the one and only freak that found it!!

I'm running Flash CS3 and AS3, freakin fast computer (Dual quads...) what other info might I need to give anyone to help me with this? LOL

I added the import fl.video.FLVPlayback to my project, and it started doing it, commented it out, and its still doing it.. so I'm not sure whats up with it...
This topic has been closed for replies.

5 replies

Participant
January 16, 2008
I encountered this problem. If you go into publish setttings - actionscript settings you can turn off the optimizer. Once I did this I did not get the error. After much further development, I went back in and turned the setting back on. I no longer received the error.
Inspiring
January 15, 2008
Hi DJ,

This is a new one for me too. However, I can say with 99% certainty that
this is a Flash compiler problem, not anything to do with you. "Bytecode" is
the compressed version of the ActionScript source code you write. It's
basically the binary (and compressed) version of your ".as" file(s) stored
in the output SWF. Bytecode optimization is a two-step process: first your
byte-code is scanned for redundancy (remove traces if not required, remove
references to missing symbols, etc.); the second step involves compressing
it using a LZW compression. Somewhere in this, the Flash compiler is
failing.

About the only thing you can try to do to fix this, before re-installing
Flash, is to clear your ASO files cache (within Flash's "Commands" menu).
The ASO cache is a collection of bytecode stored to speed up compilation.
When classes haven't changed, the cached and already compiled files are used
instead of re-compiling everything. If they have errors, however, it *may*
cause the bytecode optimization process to fail.

If it continues, however, you probably need to re-install Flash since
some part of it isn't working as expected.

Regards,
Patrick Bay
BAY NEW MEDIA

"DJ James" <webforumsuser@macromedia.com> wrote in message
news:fmgb1r$501$1@forums.macromedia.com...
> Normally when I search for an error to get help on a resolutoin I can find
> something, this time, I've found NOTHING, not here, not google, nothing..
> anyone know what "5005: Unknown error optimizing byte code" is? or am I
> the one
> and only freak that found it!!
>
> I'm running Flash CS3 and AS3, freakin fast computer (Dual quads...) what
> other info might I need to give anyone to help me with this? LOL
>
> I added the import fl.video.FLVPlayback to my project, and it started
> doing
> it, commented it out, and its still doing it.. so I'm not sure whats up
> with
> it...
>

January 17, 2008
Well luckily the admins here haven't given me the discs to re-install it yet, so I can try M123Mike suggestion first.. if that doesn't work, before I re-install, how do I clear the ASO Cache?

thanks for all this feedback, this one is impossible to find!!

quote:

Originally posted by: Newsgroup User
Hi DJ,

This is a new one for me too. However, I can say with 99% certainty that
this is a Flash compiler problem, not anything to do with you. "Bytecode" is
the compressed version of the ActionScript source code you write. It's
basically the binary (and compressed) version of your ".as" file(s) stored
in the output SWF. Bytecode optimization is a two-step process: first your
byte-code is scanned for redundancy (remove traces if not required, remove
references to missing symbols, etc.); the second step involves compressing
it using a LZW compression. Somewhere in this, the Flash compiler is
failing.

About the only thing you can try to do to fix this, before re-installing
Flash, is to clear your ASO files cache (within Flash's "Commands" menu).
The ASO cache is a collection of bytecode stored to speed up compilation.
When classes haven't changed, the cached and already compiled files are used
instead of re-compiling everything. If they have errors, however, it *may*
cause the bytecode optimization process to fail.

If it continues, however, you probably need to re-install Flash since
some part of it isn't working as expected.

Regards,
Patrick Bay
BAY NEW MEDIA

"DJ James" <webforumsuser@macromedia.com> wrote in message
news:fmgb1r$501$1@forums.macromedia.com...
> Normally when I search for an error to get help on a resolutoin I can find
> something, this time, I've found NOTHING, not here, not google, nothing..
> anyone know what "5005: Unknown error optimizing byte code" is? or am I
> the one
> and only freak that found it!!
>
> I'm running Flash CS3 and AS3, freakin fast computer (Dual quads...) what
> other info might I need to give anyone to help me with this? LOL
>
> I added the import fl.video.FLVPlayback to my project, and it started
> doing
> it, commented it out, and its still doing it.. so I'm not sure whats up
> with
> it...
>




Participating Frequently
January 15, 2008
I have heard of this happening once before when someone imported a lot of files, but it would not be in Flash help as it is a complier error that is not related to errors in your code.
January 15, 2008
no not really, not compared to what I usually have, but I do have a lot of imports...
Participating Frequently
January 14, 2008
This appears to be a compiler-level error, you may want to reinstall Flash CS3. Is this a very large AS file?