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

#186 AS2 Decompilation: show on-clip actions more user-friendly
Author: user focus
Date created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: AS1/2
State: closed Help

Hey, please, take a look at the attached file. There is a simple on-clip code (at frame 1): on (press) { fscommand ("PUSH_ONE"); } onClipEvent (enterFrame) { if (bVar == true) { fscommand ("OK"); } } on (rollOver) { gotoAndStop (2); } on (rollOut) { gotoAndStop (1); } but I can't see it in FFDec with comfort. All I can see - the PlaceObject2 tag with few CLIPACTIONRECORDs inside - I even can't tell which is rollOver for example. Could be nice to see all this code merged, just like I posted above.
DownloadFirst.swf (28 KiB)
admin
"all this code merged": it is not easy to do, because FFDec displays AS code on the left and P-code on the right and if AS are merged, then P-code on the right must be merged too, but it cannot be edited then, because it is in different CLIPACTIONRECORDs. However, I can merge it in AS export. In FFDec window, I can display on (xx) { header in each separate CLIPACTIONRECORD. Maybe it can be somehow visible in the tree too.
user
Yeah, that would be nice! I mean merged code in AS panel, with showing p-code of the selected in AS part (just like it works with methods in AS3).
admin
Hmm, that is amazing, but next problem is that AS1/2 panel is editable too. If the code is merged, that means after editation it will need to split AS back to CLIPACTIONRECORDs. Okay, maybe it can be done... I will think about it.
user
yeah... thanks, will hope you'll find way to do that. Or at least to show on(press), on(rollOver), etc. for each clipaction record.
admin
State: new→opened
admin
version 1.6.5 was released. This should be better, try it.
State: opened→upgraded
user
Yeah, much, much better now! I see no first level indentation there though: on(rollOut){ gotoAndStop(0); }
admin
State: upgraded→returned
admin
State: returned→opened
admin
version 1.6.5u1 was released it should be better now
State: opened→upgraded
user
Yes, it's okay now, thanks!
admin
State: upgraded→closed