Issue 27: DefineSceneAndFrameLabel tag

This commit is contained in:
Jindra Petk
2013-01-19 17:50:01 +01:00
parent ddbde7b5e5
commit 38aa38eaee
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
package com.jpexs.asdec.tags;
import com.jpexs.asdec.Main;
import com.jpexs.asdec.SWFInputStream;
import com.jpexs.asdec.SWFOutputStream;
import com.jpexs.asdec.abc.CopyOutputStream;
@@ -129,7 +130,9 @@ public class DefineFont3Tag extends CharacterTag implements FontTag {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
OutputStream os = baos;
SWFOutputStream sos = new SWFOutputStream(os, version);
sos = new SWFOutputStream(new CopyOutputStream(sos, new ByteArrayInputStream(data)), 10);
if(Main.DEBUG_COPY){
sos = new SWFOutputStream(new CopyOutputStream(sos, new ByteArrayInputStream(data)), 10);
}
try {
sos.writeUI16(fontId);
sos.writeUB(1, fontFlagsHasLayout ? 1 : 0);

View File

@@ -84,6 +84,8 @@ public class DefineSceneAndFrameLabelDataTag extends Tag {
sceneNames[i] = sis.readString();
}
int frameLabelCount = (int) sis.readEncodedU32();
frameNums=new long[frameLabelCount];
frameNames=new String[frameLabelCount];
for (int i = 0; i < frameLabelCount; i++) {
frameNums[i] = sis.readEncodedU32();
frameNames[i] = sis.readString();