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:
2015-12-27 10:19:27 +01:00
parent d62d0fbe1f
commit 16a27789e3
50 changed files with 659 additions and 433 deletions
@@ -129,7 +129,7 @@ public class DebuggerTools {
ScriptPack found = getDebuggerScriptPack(swf);
if (found != null) {
ABCContainerTag tag = found.abc.parentTag;
swf.tags.remove((Tag) tag);
swf.removeTag((Tag) tag);
swf.getAbcList().remove(tag);
//Change all debugger calls to normal trace / Loader
@@ -188,7 +188,7 @@ public class DebuggerTools {
}
//Add to target SWF
((Tag) ds).setSwf(swf);
swf.tags.add(swf.tags.indexOf(firstAbc), (Tag) ds);
swf.addTag((Tag) ds, (Tag) firstAbc);
swf.getAbcList().add(swf.getAbcList().indexOf(firstAbc), ds);
((Tag) ds).setModified(true);
}