add new tag fixes

This commit is contained in:
honfika@gmail.com
2014-11-05 17:31:55 +01:00
parent f83ddaa9dd
commit 89368f71f2
10 changed files with 13 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ public class DefineBinaryDataTag extends CharacterTag {
*/
public DefineBinaryDataTag(SWF swf) {
super(swf, ID, "DefineBinaryData", null);
tag = swf.getNextCharacterId();
}
public DefineBinaryDataTag(SWFInputStream sis, ByteArrayRange data) throws IOException {

View File

@@ -100,6 +100,8 @@ public class DefineButton2Tag extends ButtonTag implements Container {
*/
public DefineButton2Tag(SWF swf) {
super(swf, ID, "DefineButton2", null);
buttonId = swf.getNextCharacterId();
characters = new ArrayList<>();
}
/**

View File

@@ -100,6 +100,9 @@ public class DefineButtonTag extends ButtonTag implements ASMSource {
*/
public DefineButtonTag(SWF swf) {
super(swf, ID, "DefineButton", null);
buttonId = swf.getNextCharacterId();
characters = new ArrayList<>();
actionBytes = new ByteArrayRange(new byte[0]);
}
/**

View File

@@ -709,6 +709,7 @@ public class DefineEditTextTag extends TextTag {
super(swf, ID, "DefineEditText", null);
characterID = swf.getNextCharacterId();
bounds = new RECT();
variableName = "";
}
/**

View File

@@ -75,6 +75,7 @@ public class DefineShapeTag extends ShapeTag {
super(swf, ID, "DefineShape", null);
shapeId = swf.getNextCharacterId();
shapeBounds = new RECT();
shapes = new SHAPEWITHSTYLE();
}
public DefineShapeTag(SWFInputStream sis, ByteArrayRange data) throws IOException {

View File

@@ -102,6 +102,7 @@ public class DefineSoundTag extends CharacterTag implements SoundTag {
*/
public DefineSoundTag(SWF swf) {
super(swf, ID, "DefineSound", null);
soundId = swf.getNextCharacterId();
}
/**

View File

@@ -481,6 +481,7 @@ public class DefineText2Tag extends TextTag {
super(swf, ID, "DefineText2", null);
characterID = swf.getNextCharacterId();
textBounds = new RECT();
textRecords = new ArrayList<>();
glyphBits = 0;
advanceBits = 0;
}

View File

@@ -442,6 +442,7 @@ public class DefineTextTag extends TextTag {
super(swf, ID, "DefineText", null);
characterID = swf.getNextCharacterId();
textBounds = new RECT();
textMatrix = new MATRIX();
glyphBits = 0;
advanceBits = 0;
}

View File

@@ -104,6 +104,7 @@ public class DefineVideoStreamTag extends CharacterTag implements BoundedTag {
*/
public DefineVideoStreamTag(SWF swf) {
super(swf, ID, "DefineVideoStream", null);
characterID = swf.getNextCharacterId();
}
/**

View File

@@ -89,6 +89,7 @@ public final class DefineCompactedFont extends FontTag implements DrawableTag {
super(swf, ID, "DefineCompactedFont", null);
fontId = swf.getNextCharacterId();
fonts = new ArrayList<>();
shapeCache = new ArrayList<>();
}
/**