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.

#562 Editing ActionScript 3 code
Author:
ThomasSpeedrunner

Date created:
Type: feature
Visibility: Everybody
Assigned to:
JPEXS

Labels: AS3Direct Editation
State: closed 

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)
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".
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.
Yeah, sorry about that. I meant ActionScript 3.
Sorry about the confusion.
State: new→opened
You can try newest nightly build. But it is all EXPERIMENTAL and surely contains many
bugs.
State: opened→upgraded
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.
new nightly build released, this should be fixed.
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)
We need the code you have problem with to fix it.
Please attach the code here, or better the whole SWF.
(Add file button)
State: upgraded→returned
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
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
You can try newest nightly build. It should be better. But I don't think you should trust
it much, it's still experimental.
Another fixes in 2.1.0u1,
try it.
State: returned→upgraded
If any problem occurs, you can create new bugreport.
I am closing this issue.
State: upgraded→closed