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.

#1376 Cannot access resources in some SWF
Author:
Zamasu

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

> What steps will reproduce the problem?
I'm a sprite ripper, I recently started to rip sprites from flash games, but when I open
some SWF's the folders such as "images" "sprites" "shapes" "sound" are completely empty.
Even when I click "export all images" etc they still don't show up. What is going on
here?
Is it some sort of compression in the SWF? And if so, what do I have to modify in order to
decompress all the files?
Please attach your swf file.
This is only one of the many games I have tried to rip sprites from. I haven't found
anything relating to this problem when I googled it.

This SWF has 2 sprites, a lock and a small line.
It has a bigger embedded binary data (mochicrypt.Payload), probably it contains the
remaining stuff.
You need to extract it, and decrypt it somehow. The algorithm is in
scripts/mochicrypt/Preloader
Or you can try this: (copied from issue #1162)
Ok, here is the thing, you can do to see more of the SWF file:
1) Download nightly builf 1276 or later
2) In settings tab, check "Open loaded SWFs while playing"
3) On file tab, click Run
4) It will ask for flash player projector, just setup its path and download it from adobe
site on displayed settings panel.
5) If you setup 4) correctly, then click Run on file tab
6) The SWF file will run in new Flash window
7) During play, new SWF files (hidden in original SWF) should be opened automatically in
FFDec
This way you can inspect inner SWF files.
That sounds great but there's a slight problem that I cannot check "Open loaded SWFs while
playing". I downloaded the latest "nightly build" version.
Why? It is just a checkbox, what is the problem?
Bth, it should work with the latest stable, too. (Nightly 1276 is older than the latest
stable)
Are you on Windows, whoch vesion? (why did you delete this part of the bugreport when you
filled it?)
Is flash working in your internet explorer browser?
First off about the bug report thing I didn't think it was a necessary template, guess
I'll know next time. Anyway I'm on Windows XP (blame me for not having money to upgrade to
7) and flash works on Google Chrome fine, as well as it does Internet Explorer.
Please try the latest nightly. I've added a logging.
So please start it, and check the log window by clicking to the icon in the bottom right
corner.
I looked at the log. It says "WARNING: Cannot initialize flash panel"
Now that I downloaded all the things that the paths told me to, I can now check the "open
SWF while running" option.
And still nothing happens.
None of these inner "SWFs" are appearing in the file viewer.
Then please try to decrypt the binary data manually.
Alright but how do I do that?
We cant't help you in this.
The decription logic is in mochicrypt.Payload actionscript class, you need some
programming knowledge to wrtie the same dectypt algoritm in any programming language.
And that's where I stop. Might I suggest you work on a feature that shows the hidden SWF
files easier in the future?
Alright, last update.
I found this tool called "SWF Memory Dumper", it allowed me to access the hidden SWF's.
Problem solved for now.
State: new→closed
Type: bug→question
Type: bug→question