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.

#2417 Question about importing shapes and images/sprites
Author:
aMax

Date created:
Type: question
Visibility: Everybody
Assigned to:
State: opened 

Ok i used JPEXS for some time, but never wanted to create or edit Shockwave Flash files,
today i decided that i wanted to make a SWF or at least discover how to import
Shapes,Images or Sprites.
And when i imported the folder, it always said "0 (shapes/images/sprites)
imported"(translated from the language i use, PT-BR.),i probably discovered that i need to
make each image,shape and sprite with a specific tag probably, because i tried importing
some more shapes and sprites or images and it only imported 2 that were a white shape and
white image or sprite(i forgotten which one of the two it was), i forgot what they were
named but it only imported 2 images or sprites and shapes.
Since i forgot it, can someone name it to be? I forgot but it was something with bitless
or bit.
uhm sorry i forgot to put a screenshot because i am in mobile right now.
if it is obligatory to put a screenshot too in the post, mods y'all are free to delete
this post.
(if my grammar is bad, remember that im Brazilian)
"Import a shape/image/sprite" feature in FFDec means "mass/bulk import shapes",
you select a folder with items that match existing shapes/images/sprites in the current
SWF file and it overwrites them. It will NOT import anything new, that did not exist
before.
If you want to create brand new shape or image in the SWF file,
then you need to do it via Add tag feature.
SWF file consists of tags.
You better switch into the "Tag list" view on the top View panel for it.
Then right click a frame in the tag tree and select "Add tag inside",
you will see many submenus. The easiest way is to select "Create XXX from file..."
which will directly allow to select a file from the disk which will be then imported as a
tag.
Editing a SWF file is not very easy and not very intuitive in FFDec. You need to know how
SWF internals work.
For example placing an item on the stage requires PlaceObject tag, setting it's character
id to the shape id,
and setting its matrix. FFDec can help with some of it, but not with everything.
The "simple editor" feature should had make this better, but it's far from complete, and
might be buggy.

State: new→opened