mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:00:47 +00:00
as2 export fix, as2 edit fix (prefix, suffix problem)
This commit is contained in:
@@ -22,7 +22,7 @@ import com.jpexs.decompiler.flash.RunnableIOEx;
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.SWFInputStream;
|
||||
import com.jpexs.decompiler.flash.action.Action;
|
||||
import com.jpexs.decompiler.flash.helpers.HilightedText;
|
||||
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
|
||||
import com.jpexs.decompiler.flash.tags.CSMTextSettingsTag;
|
||||
import com.jpexs.decompiler.flash.tags.DefineButton2Tag;
|
||||
import com.jpexs.decompiler.flash.tags.DefineButtonCxformTag;
|
||||
@@ -1112,8 +1112,11 @@ public class XFLConverter {
|
||||
}
|
||||
|
||||
private static String convertActionScript(ASMSource as) {
|
||||
HilightedText decompiledAS = Action.actionsToSource(as.getActions(SWF.DEFAULT_VERSION), SWF.DEFAULT_VERSION, as.toString(), false, as.getActionSourceIndent());
|
||||
return as.getActionSourcePrefix() + decompiledAS.text + as.getActionSourceSuffix();
|
||||
HilightedTextWriter writer = new HilightedTextWriter(false);
|
||||
as.getActionSourcePrefix(writer);
|
||||
Action.actionsToSource(as.getActions(SWF.DEFAULT_VERSION), SWF.DEFAULT_VERSION, as.toString(), writer);
|
||||
as.getActionSourceSuffix(writer);
|
||||
return writer.toString();
|
||||
}
|
||||
|
||||
private static long getTimestamp() {
|
||||
|
||||
Reference in New Issue
Block a user