I've been compiling my Papervision3D actionscript project using mxmlc using the following command line parameter:
mxmlc.exe -static-link-runtime-shared-libraries=true source.as
The following error is displayed:
java.util.zip.ZipException: invalid block type
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
The software runs fine in Flash CS3 without embed commands:
[Embed(source="/Textures/Texture.png")]
private var TextureClass:Class;
etc., but I do need the assets embedded.
Building in Flash Develop gets the same error of course, and won't produce a .swf. However it still says the .swf size is/would be 25MB.
I haven't compiled many projects in mxmlc (or Flash Develop) but my last one was fine with all embedded assets showing.
HELP! Have you seen this error? How can I get rid of it?
I would offer a bounty on this one, but my score is too low. :/
I haven't got rid of the java error, but I found out why I was getting a white screen on the .swf!
It was a stack trace error.
I got rid of this error by adding compiler argument:
-omit-trace-statements=false
Now my .swf runs fine!
Still don't know what is causing the java ZipException, looks like a problem with one of the .png graphics files, but I can't see a problem in the .swf.
Because of the ZipException the project won't compile in Flash Develop, so I am left with using mxmlc.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.