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.

List of issuesList of issues

#2221 Is it possible in the future to add functions inside functions?
Author: user capasha
Date created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: AS3P-code
State: closed Help

Example this code: public function checkCharacter(param1:Boolean) : void { var collide:Boolean = param1; this.player.collideWithWall = collide; if(this.wall.overlaps(this.player)) { this.player.collideWithWall = !collide; this.queue.push(function():void { checkCharacter(collide); }); } } It have this.qeueue.push(function():void { checkCharacter(collide) }); I have tried with P-code, but doesn't work. If I make this as actionscript editing the swf I use, it instantly crashes. I need this in p-code, or a way to generate functions inside functions.
admin
In nightly 2842, there is a new button "Add function" on the top of AS3 p-code panel. It will create new MethodInfo and MethodBody and shows you the method info index which you can then set as operand to newfunction instruction. If you want to customize the method parameters and its body, you need to locate it then in ActionScript view, click it, and then edit its p-code there.
State: new→upgraded
admin
State: upgraded→closed