JPEXS Free Flash Decompiler Issue Tracker

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

: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

List of issuesList of issues

#562 Editing ActionScript 3 code
Date created:
Type: feature
Visibility: Everybody
Assigned to: admin JPEXS
Labels: AS3Direct Editation
State: closed Help

Soo...why are we not able to directly edit JavaScript code yet? Having to edit a weirdly modified version of it on the side of the screen is kind of annoying and mixes everything around. (read: One should be able to edit the actual code and not some weird thing on the side of the screen which doesn't even make sense)
admin
You can't edit JavaScript code, because SWF contains ActionScript code only ;-). You can directly edit ActionScript 1/2 code. ActionScript 3 cannot be currenly edited directly. This feature may come in the future. The "weird thing" on the right side is P-code, assembler which ActionScript bytecode is made of. Editing directly is not easy to implement. In fact, we must create ActionScript compiler, which means converting the script into the P-code. (the "weird" thing on right side) It's no just "yea, save that script as text to the SWF".
Title: Editing code?→Editing ActionScript 3 code
Assigned:admin JPEXS
developer
JavaScript? Did you mean ActionScript? You can already edit AS2 scripts, but this is an experimental feature. Do you know what you want form us? JPEXS needs to implement a whole ActionScript compiler to allow editing the scripts. So it is very hard, and a lot of work. This is the reason. Albiet probably this will be implemented sooner or later.
user
Yeah, sorry about that. I meant ActionScript 3. Sorry about the confusion.
admin
State: new→opened
admin
You can try newest nightly build. But it is all EXPERIMENTAL and surely contains many bugs.
State: opened→upgraded
user
Well, I tried the nightly build, and while I can say it's functional, it refuses to let me save what I'm editing. Here's the first line of the code I'm trying to edit (which is what the program is complaining about): "package com.giab.games.gcl.ag.ingame" And here's the error it gives me: "DOT expected but IDENTIFIER found on line 1" This keeps me from editing anything, because it's like this on all the scripts in the .swf.
admin
new nightly build released, this should be fixed.
user
Hmm...now it pretty much crashes (takes forever to attempt to save and never actually does save), and whenever it doesn't crash (i.e. when I'm editing a tiny script), I usually get some sort of error like "CURLY_CLOSED expected but CURLY_OPEN found on line 6", which doesn't make sense since there's MOAR code after the CURLY_OPEN which is mentioned in the error. (something tells me this will end up taking quite a while to get right)
admin
We need the code you have problem with to fix it. Please attach the code here, or better the whole SWF. (Add file button)
admin
State: upgraded→returned
admin
I fixed class initializers in newest nightly build so it should be a bit better now. If not, then please attach the problematic code so I can take a look.
State: returned→upgraded
admin
Hmm, I found various other bugs now. It's not very useful yet :-(. I will try to improve it and let you know
State: upgraded→returned
admin
You can try newest nightly build. It should be better. But I don't think you should trust it much, it's still experimental.
admin
Another fixes in 2.1.0u1, try it.
State: returned→upgraded
admin
If any problem occurs, you can create new bugreport. I am closing this issue.
developer
State: upgraded→closed