If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.

#1332 Image not appearing
Author:
idk

Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed 

I added a PNG image to my SWF file, but it does not appear when I try to view it. I've
added the SWF file to this post, so hopefully someone can find out what's wrong. This is
the error I get:
30/12/2016 13:10:37 SEVERE Uncaught exception in thread: AWT-EventQueue-0
java.lang.IllegalArgumentException: Width (326) and height (-8) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.GraphicsConfiguration.createCompatibleImage(Unknown Source)
at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
at sun.awt.image.VolatileSurfaceManager.initialize(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at java.awt.GraphicsConfiguration.createCompatibleVolatileImage(Unknown Source)
at java.awt.GraphicsConfiguration.createCompatibleVolatileImage(Unknown Source)
at com.jpexs.decompiler.flash.gui.View.createRenderImage(View.java:757)
at
com.jpexs.decompiler.flash.gui.ImagePanel$IconPanel$1.componentResized(ImagePanel.java:247
)
at java.awt.Component.processComponentEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Which version do you have? I tried it with the latest nightly and can't see any problem.
But it should be also ok in the latest stable (10.0)
State: new→upgraded
I think I'm using version 9. I'll update now. Thanks!
I updated to version 10, and the problem is still occurring. I'm using the latest Flash
player as well.
Ok, then please explain how did you create this swf file. Also please aattach the original
SWF file and write all the steps you did.
State: upgraded→returned
Sprites cannot contain images directly, you have to put the image to Shape tags and use
the shapes in sprites.
Now the image tag is also not visible with the internal viewer.
State: returned→upgraded
State: upgraded→closed
Actually - there is a way how to place Image tag directly to stage.
The file must be AS3 (FileAttributes as3 flag set to true),
and you must add it via PlaceObject3 or PlaceObject4 and
set its placeFlagHasImage attribute to true.
For these cases, I modified the internal viewer to show image tags in nightly 1856.