mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-29 06:25:33 +00:00
swf.tags and sprite.subtags are private to avoid modifying the list without setting the isModified flag + some small chages
This commit is contained in:
@@ -152,7 +152,6 @@ public class AdobeFlashExecutor {
|
||||
|
||||
Map<String, ASMSource> asms = swf.getASMs(true);
|
||||
ASMSource asm = asms.get("\\frame_1\\DoAction");
|
||||
int asmIndex = swf.tags.indexOf(asm);
|
||||
|
||||
ActionList actionsList = asm.getActions();
|
||||
FastActionList actions = new FastActionList(actionsList);
|
||||
@@ -173,7 +172,7 @@ public class AdobeFlashExecutor {
|
||||
actions2.add(new ActionReturn());
|
||||
|
||||
doaTag.setActions(actions2);
|
||||
swf.tags.add(asmIndex, doaTag);
|
||||
swf.addTag(doaTag, asm);
|
||||
|
||||
i++;
|
||||
}
|
||||
@@ -211,7 +210,7 @@ public class AdobeFlashExecutor {
|
||||
SWF swf = new SWF(new BufferedInputStream(new FileInputStream(runFileAs3)), false);
|
||||
swf.version = SWF.MAX_VERSION;
|
||||
DoABC2Tag abcTag = null;
|
||||
for (Tag t : swf.tags) {
|
||||
for (Tag t : swf.getTags()) {
|
||||
if (t instanceof DoABC2Tag) {
|
||||
abcTag = ((DoABC2Tag) t);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user