예제 #1
0
 private void processTag(Tag tag, long streamOffset) {
   switch (tag.tagType()) {
     case SET_BACKGROUND_COLOR:
       document.setBackgroundColor(((SetBackgroundColor) tag).getColor());
       return;
     case FILE_ATTRIBUTES:
       if (((FileAttributes) tag).isAllowNetworkAccess()) {
         document.setAccessMode(SWFDocument.ACCESS_MODE_NETWORK);
       }
       return;
     case METADATA:
       document.setMetadata(((Metadata) tag).getDataString());
       return;
   }
   document.addTag(tag);
   for (SWFListener l : listeners) {
     l.processTag(tag, streamOffset);
   }
 }
예제 #2
0
 private void processHeader(SWFHeader header) {
   document.setFrameRate(header.getFrameRate());
   document.setFrameSize(header.getFrameSize());
   document.setVersion(header.getVersion());
   document.setFileLength(header.getFileLength());
   document.setFrameCount(header.getFrameCount());
   document.setCompressed(header.isCompressed());
   for (SWFListener l : listeners) {
     l.processHeader(header);
   }
 }