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.

#1928 Format for Shape replace
Author:
mdali

Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: GFX
State: closed 

Format for shape replace
What is right format for replacing shape? I use png and it's works but not in all cases
(plz see images first for understanding further) The result that should be given is where
written ("Systems ran into a problem") but after replacing or editing a shape in gameplay
its showing a whole shape instead of showing also image there from images section. When I
export a shape whole shape is with red color but that time in gameplay image shown form
imgaes section but after my edit its just so my whole shape and not image why?
Well i believe that there is my fault because I don't know how to replace shape. So
someone plz help here.
Please attach your SWF file and also the PNG you are trying to replace it with and tell
the shape id to replace. We may then investigate it futher.
Best format for shapes is SVG, but PNGs, JPEG,BMPs should work too - it will create an
DefineBitsJPEG/Lossless image and then use it in the shape.
State: new→opened
Ok, I give you the files, but before that. I am attaching two photos where you will
clearly understand the problem
A SWF file and PNG is there in zip file

Shape name: DefineShape (139)
Image name: DefineExternalImage2 (i11)
it's been a long wait!
1) Please use current FFDec version - 18.3.2, there are some improvements of GFX images.
For example, the image should be visible on the Defineshape(139) now.
2) In GFX File, images are stored in external files, DDS usually. If you want to change
DDS path stored in the SWF, then right click the image and hit "Raw edit" from the context
menu.
3) You cannot replace external image directly in FFDec, you need to edit the DDS image on
the disk.
4) If you imported a PNG to the shape and it does not display in the game, then the game
probably needs all images to be external - convert them to DDS and then create new
DefineExternalImage2 tags.
Shape importer currently imports only to nonexternal images. For GFX this probably needs
to be changed.
State: opened→closed