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:
honfika@gmail.com
2015-12-27 10:19:27 +01:00
parent d62d0fbe1f
commit 16a27789e3
50 changed files with 659 additions and 433 deletions

View File

@@ -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;