JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issuesList of issues

#2747 How to create function in functions with FFDec
Author:
Date created:
Type: question
Visibility: Everybody read only
Assigned to:
Labels: AS3P-code
State: opened Help

Hi, I have important question Is now with the latest version of FFDec is it possible to create such inline functions? And which ways there is to create it? private function bindCheckBox(param1:String, param2:CCheckBox) : void { CConfigRegistry.add(param1,CConfigTypes.BOOL,function():* { return param2.value; },function(param1:*):void { param2.setHotkeyValue(param1 == true); }); } So, Im about functions in this function "bindCheckBox" If I need to create it, I need to use only direct AS3 editation or with newer version of FFDec there is another ways? It's crucial for me Thanks in advance for help
For me it's related to AS3, not AS2
Hi, you can create new AS3 inline functions using the "Add new function" button. It is located on the toolbar on the top of P-code panel. There's also warning message about how it works. It creates new methodinfo index which you can set as operant to newfunction instruction. Then (after saving the P-code), to edit the method parameters, you click its body in ActionScript view.
State: new→opened
I found it, thank you very much for help!)