JPEXS Free Flash Decompiler Issue Tracker

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.

Error: Please login first to download files from the Issue Tracker. You can register for free.
List of issuesList of issues

#2426 Force save a swf even if theres an "error"
Date created:
Type: question
Visibility: Everybody
Assigned to:
State: opened Help

I want to be able to force save a script. the issue im having is the script has an extend that doesnt exist in the sub swf but does in the main swf. but its erroring out since it cant find that script. the way it injects the script ``` private static function method_33(param1:Sprite, param2:Number = 0) : void { var _loc3_:ByteArray = null; var _loc4_:LoaderContext = null; if(var_18 != null && var_94 == param1) { var_24.dispatchEvent(new Event(Event.INIT)); } else { var_94 = param1; var_116 = param2; _loc3_ = Base64.method_16(var_146); _loc3_.uncompress(); var_102 = new ApplicationDomain(ApplicationDomain.currentDomain); var_93 = new Loader(); var_93.contentLoaderInfo.addEventListener(Event.COMPLETE,method_103); var_93.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,method_96); _loc4_ = new LoaderContext(false,var_102); if(Main.instance.var_3) { _loc4_.allowCodeImport = true; } var_93.loadBytes(_loc3_,_loc4_); } } ``` the variable "var_146" is a base 64 string with the entire swf inside of it. then it it uncompresses it because it was zlib encoded. just need to zlib inflate it in cyber chef after you base64 decrypt is there a way i can force save? i provided the "sitelock"
user
I think if you edit the P-Code you won't get an error.
admin
1) There is no such thing as force-save for AS3 direct editation. The code must be compiled into binary and we cannot skip incorrect parts. It's the same as if you compile program in any other programming language. 2) If you want to use dependencies from other SWF file, you can add the second file as dependency via link icon - see attached screenshot. The file must be opened in FFDec first. 3) It seems that you use variable renaming feature, which may break the SWF and also may break compatibility across dependent SWFs. If you want just edit the file in FFDec, I recommend doing it without variables renaming. The code should be editable even if it contains §obfuscated§ variables. 4) As STA20 said, for small edits, you can use P-code editation, which should be saveable everytime (if you do not do any bad edits).
State: new→opened