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.

#2173 Edit function by itself without modifying the whole class
Author:
Colly

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

> What steps will reproduce the problem?
I am trying to modify a class from a game, but that game is obsfucated and encrypted. When
i go to a class that is very long and has very complicated logics and i click on edit with
AS3 and i only modify a function.
> What is the expected output? What do you see instead?
When it recompiles that whole entire class, it might change other stuff, because if the
logics are extremely complicated it might break something else even though i didnt
modify.
We need to be capable to modify one single function at a time, without recompiling the
whole class. It is possible in P-Code but P-code is very hard to use and edit and
understand.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
Version 20.1.0, latest at this time not a Nightly Build.
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
If you want to test it yourself
Download the game:
https://discord.com/channels/1094703772254617701/1189693612770996304/1189714423758200893
Install it
Open it, select language, click play
After the game opens, close it, the SWF file of it is saved in
%appdata%/Roaming/RTanksOnline/Local Store/cache
And then filter by Size of the files... The file with the biggest Size (Somewhat like 8MB
size) is the swf file
Open the swf file inside the Flash Decompiler
Open the class "RailgunTargetSystem", there is only one class with this name, but the
package of it changes a lot so i cannot give a specific path but if you do CTRL+F and type
RailgunTargetSystem it will show up
Editing that class breaks the entire game, when you save the file and open the game even
if you modify one variable by just editing ActionScript it will not be capable to enter a
Battle.
I myself need to modify just one function like modify a few lines of code inside a
particular function but it is very difficult to do it in P-Code so please make a way to
edit one function in the ActionScript editor without it editing the whole class
I will send the swf file myself too so you can have a look faster if you want:
Also a edited photo by myself to show you how im thinking about the method to be:


