pt.tumba.parser.swf
Class TagWriter

java.lang.Object
  extended by pt.tumba.parser.swf.TagWriter
All Implemented Interfaces:
SWFConstants, SWFHeader, SWFSpriteTagTypes, SWFTags, SWFTagTypes

public class TagWriter
extends java.lang.Object
implements SWFTagTypes, SWFConstants

A writer that implements the SWFTagTypes interface and writes to a SWFTags interface

Author:
unknown

Nested Class Summary
protected static class TagWriter.ButtonActionWriter
          Description of the Class
protected static class TagWriter.Font2ShapeImpl
          Description of the Class
protected static class TagWriter.MorphShapeImpl
          Description of the Class
protected  class TagWriter.SpriteTags
          Description of the Class
protected static class TagWriter.SWFShapeImpl
          Implementation of the SWFShape interface
protected  class TagWriter.SWFTextImpl
          Description of the Class
 
Field Summary
protected  java.io.ByteArrayOutputStream bytes
          Description of the Field
protected  boolean longTag
          Description of the Field
protected  OutStream out
          Description of the Field
protected  SWFTags tags
          Description of the Field
protected  int tagType
          Description of the Field
protected  int version
          Description of the Field
 
Fields inherited from interface pt.tumba.parser.swf.SWFConstants
BITMAP_FORMAT_16_BIT, BITMAP_FORMAT_32_BIT, BITMAP_FORMAT_8_BIT, BUTTON2_IDLE2OVERDOWN, BUTTON2_IDLE2OVERUP, BUTTON2_OUTDOWN2IDLE, BUTTON2_OUTDOWN2OVERDOWN, BUTTON2_OVERDOWN2IDLE, BUTTON2_OVERDOWN2OUTDOWN, BUTTON2_OVERDOWN2OVERUP, BUTTON2_OVERUP2IDLE, BUTTON2_OVERUP2OVERDOWN, CLIP_ACTION_DATA, CLIP_ACTION_ENTER_FRAME, CLIP_ACTION_KEY_DOWN, CLIP_ACTION_KEY_UP, CLIP_ACTION_MOUSE_DOWN, CLIP_ACTION_MOUSE_MOVE, CLIP_ACTION_MOUSE_UP, CLIP_ACTION_ON_LOAD, CLIP_ACTION_UNLOAD, FILL_CLIPPED_BITMAP, FILL_LINEAR_GRADIENT, FILL_RADIAL_GRADIENT, FILL_SOLID, FILL_TILED_BITMAP, FONT_ANSI, FONT_BOLD, FONT_ITALIC, FONT_SHIFTJIS, FONT_UNICODE, FONT_WIDECHARS, FONT2_32OFFSETS, FONT2_ANSI, FONT2_BOLD, FONT2_HAS_LAYOUT, FONT2_ITALIC, FONT2_SHIFTJIS, FONT2_UNICODE, FONT2_WIDECHARS, SOUND_FORMAT_ADPCM, SOUND_FORMAT_MP3, SOUND_FORMAT_RAW, SOUND_FREQ_11KHZ, SOUND_FREQ_22KHZ, SOUND_FREQ_44KHZ, SOUND_FREQ_5_5KHZ, TAG_DEFINEBITS, TAG_DEFINEBITSJPEG2, TAG_DEFINEBITSJPEG3, TAG_DEFINEBITSLOSSLESS, TAG_DEFINEBITSLOSSLESS2, TAG_DEFINEBUTTON, TAG_DEFINEBUTTON2, TAG_DEFINEBUTTONCXFORM, TAG_DEFINEBUTTONSOUND, TAG_DEFINEFONT, TAG_DEFINEFONT2, TAG_DEFINEFONTINFO, TAG_DEFINEMORPHSHAPE, TAG_DEFINEQUICKTIMEMOVIE, TAG_DEFINESHAPE, TAG_DEFINESHAPE2, TAG_DEFINESHAPE3, TAG_DEFINESOUND, TAG_DEFINESPRITE, TAG_DEFINETEXT, TAG_DEFINETEXT2, TAG_DEFINETEXTFIELD, TAG_DOACTION, TAG_ENABLEDEBUG, TAG_END, TAG_EXPORT, TAG_FLASHGENERATOR, TAG_FRAMELABEL, TAG_FREECHARACTER, TAG_GEN_EXTERNAL_FONT, TAG_GENERATOR_TEXT, TAG_IMPORT, TAG_JPEGTABLES, TAG_NAMECHARACTER, TAG_PLACEOBJECT, TAG_PLACEOBJECT2, TAG_PROTECT, TAG_REMOVEOBJECT, TAG_REMOVEOBJECT2, TAG_SERIALNUMBER, TAG_SETBACKGROUNDCOLOR, TAG_SHOWFRAME, TAG_SOUNDSTREAMBLOCK, TAG_SOUNDSTREAMHEAD, TAG_SOUNDSTREAMHEAD2, TAG_STARTSOUND, TAG_TEMPLATECOMMAND, TEXT_HAS_COLOR, TEXT_HAS_FONT, TEXT_HAS_XOFFSET, TEXT_HAS_YOFFSET, TEXTFIELD_ALIGN_CENTER, TEXTFIELD_ALIGN_JUSTIFY, TEXTFIELD_ALIGN_LEFT, TEXTFIELD_ALIGN_RIGHT, TEXTFIELD_DISABLE_EDIT, TEXTFIELD_DRAW_BORDER, TEXTFIELD_FONT_GLYPHS, TEXTFIELD_HAS_FONT, TEXTFIELD_HAS_LAYOUT, TEXTFIELD_HAS_TEXT, TEXTFIELD_HAS_TEXT_COLOR, TEXTFIELD_HTML, TEXTFIELD_IS_MULTILINE, TEXTFIELD_IS_PASSWORD, TEXTFIELD_LIMIT_CHARS, TEXTFIELD_NO_SELECTION, TEXTFIELD_WORD_WRAP, TWIPS
 
Constructor Summary
TagWriter(SWFTags tags)
          Constructor for the TagWriter object
 
Method Summary
protected  void completeTag()
          Finish the tag context and write the tag
protected  SWFText defineText(Rect bounds, Matrix matrix, boolean hasAlpha)
          Description of the Method
protected  SWFActions factorySWFActions()
          Description of the Method
protected  SWFShape factorySWFShape(boolean hasAlpha, boolean hasStyle)
          Description of the Method
protected  OutStream getOutStream()
          Gets the outStream attribute of the TagWriter object
 void header(int version, long length, int twipsWidth, int twipsHeight, int frameRate, int frameCount)
          SWFHeader interface.
protected  void startShape(int tagType, int id, Rect outline)
          Description of the Method
protected  void startTag(int tagType, boolean longTag)
          Start a new tag context
protected  void startTag(int tagType, int id, boolean longTag)
          Start a new definition tag context
 void tag(int tagType, boolean longTag, byte[] contents)
          SWFTags interface
 void tagButtonCXForm(int buttonId, ColorTransform transform)
          SWFTagTypes interface
 void tagDefineBits(int id, byte[] imageData)
          SWFTagTypes interface
 void tagDefineBitsJPEG2(int id, byte[] data)
          SWFTagTypes interface
 void tagDefineBitsJPEG2(int id, java.io.InputStream jpegImage)
          SWFTagTypes interface
 void tagDefineBitsJPEG3(int id, byte[] imageData, byte[] alphaData)
          SWFTagTypes interface
 void tagDefineBitsLossless(int id, int format, int width, int height, Color[] colors, byte[] imageData)
          SWFTagTypes interface
 void tagDefineBitsLossless2(int id, int format, int width, int height, Color[] colors, byte[] imageData)
          SWFTagTypes interface
 SWFActions tagDefineButton(int id, java.util.List buttonRecords)
          SWFTagTypes interface
 SWFActions tagDefineButton2(int id, boolean trackAsMenu, java.util.List buttonRecord2s)
          SWFTagTypes interface
 void tagDefineButtonSound(int buttonId, int rollOverSoundId, SoundInfo rollOverSoundInfo, int rollOutSoundId, SoundInfo rollOutSoundInfo, int pressSoundId, SoundInfo pressSoundInfo, int releaseSoundId, SoundInfo releaseSoundInfo)
          SWFTagTypes interface
 SWFVectors tagDefineFont(int id, int numGlyphs)
          SWFTagTypes interface
 SWFVectors tagDefineFont2(int id, int flags, java.lang.String name, int numGlyphs, int ascent, int descent, int leading, int[] codes, int[] advances, Rect[] bounds, int[] kernCodes1, int[] kernCodes2, int[] kernAdjustments)
          SWFTagTypes interface
 void tagDefineFontInfo(int fontId, java.lang.String fontName, int flags, int[] codes)
          SWFTagTypes interface
 SWFShape tagDefineMorphShape(int id, Rect startBounds, Rect endBounds)
          SWFTagTypes interface
 void tagDefineQuickTimeMovie(int id, java.lang.String filename)
          SWFTagTypes interface
 SWFShape tagDefineShape(int id, Rect outline)
          SWFTagTypes interface
 SWFShape tagDefineShape2(int id, Rect outline)
          SWFTagTypes interface
 SWFShape tagDefineShape3(int id, Rect outline)
          SWFTagTypes interface
 void tagDefineSound(int id, int format, int frequency, boolean bits16, boolean stereo, int sampleCount, byte[] soundData)
          SWFTagTypes interface
 SWFTagTypes tagDefineSprite(int id)
          SWFTagTypes interface
 SWFText tagDefineText(int id, Rect bounds, Matrix matrix)
          SWFTagTypes interface
 SWFText tagDefineText2(int id, Rect bounds, Matrix matrix)
          SWFTagTypes interface
 void tagDefineTextField(int fieldId, java.lang.String fieldName, java.lang.String initialText, Rect boundary, int flags2, AlphaColor textColor, int alignment, int fontId, int fontSize, int charLimit, int leftMargin, int rightMargin, int indentation, int lineSpacing)
          SWFTagTypes interface
 SWFActions tagDoAction()
          SWFTagTypes interface
 void tagEnableDebug(byte[] password)
          SWFTagTypes interface
 void tagEnd()
          SWFTagTypes interface
 void tagExport(java.lang.String[] names, int[] ids)
          SWFTagTypes interface
 void tagFrameLabel(java.lang.String label)
          SWFTagTypes interface
 void tagFreeCharacter(int charId)
          SWFTagTypes interface
 void tagGenerator(byte[] data)
          SWFTagTypes interface
 void tagGeneratorCommand(byte[] data)
          SWFTagTypes interface
 void tagGeneratorFont(byte[] data)
          SWFTagTypes interface
 void tagGeneratorText(byte[] data)
          SWFTagTypes interface
 void tagImport(java.lang.String movieName, java.lang.String[] names, int[] ids)
          SWFTagTypes interface
 void tagJPEGTables(byte[] jpegEncodingData)
          SWFTagTypes interface
 void tagNameCharacter(byte[] data)
          SWFTagTypes interface
 void tagPlaceObject(int charId, int depth, Matrix matrix, AlphaTransform cxform)
          SWFTagTypes interface
 SWFActions tagPlaceObject2(boolean isMove, int clipDepth, int depth, int charId, Matrix matrix, AlphaTransform cxform, int ratio, java.lang.String name, int clipActionFlags)
          SWFTagTypes interface
 void tagProtect(byte[] password)
          SWFTagTypes interface
 void tagRemoveObject(int charId, int depth)
          SWFTagTypes interface
 void tagRemoveObject2(int depth)
          SWFTagTypes interface
 void tagSerialNumber(java.lang.String serialNumber)
          SWFTagTypes interface
 void tagSetBackgroundColor(Color color)
          SWFTagTypes interface
 void tagShowFrame()
          SWFTagTypes interface
 void tagSoundStreamBlock(byte[] soundData)
          SWFTagTypes interface
 void tagSoundStreamHead(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount)
          SWFTagTypes interface
 void tagSoundStreamHead2(int playbackFrequency, boolean playback16bit, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bit, boolean streamStereo, int averageSampleCount)
          SWFTagTypes interface
 void tagStartSound(int soundId, SoundInfo info)
          SWFTagTypes interface
 void writeBitsLossless(int id, int format, int width, int height, Color[] colors, byte[] imageData, boolean hasAlpha)
          Description of the Method
 void writeSoundStreamHead(int tag, int playbackFrequency, boolean playback16bits, boolean playbackStereo, int streamFormat, int streamFrequency, boolean stream16bits, boolean streamStereo, int averageSampleCount)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tags

protected SWFTags tags
Description of the Field


out

protected OutStream out
Description of the Field


bytes

protected java.io.ByteArrayOutputStream bytes
Description of the Field


tagType

protected int tagType
Description of the Field


longTag

protected boolean longTag
Description of the Field


version

protected int version
Description of the Field

Constructor Detail

TagWriter

public TagWriter(SWFTags tags)
Constructor for the TagWriter object

Parameters:
tags - Description of the Parameter
Method Detail

getOutStream

protected OutStream getOutStream()
Gets the outStream attribute of the TagWriter object

Returns:
The outStream value

factorySWFActions

protected SWFActions factorySWFActions()
Description of the Method

Returns:
Description of the Return Value

factorySWFShape

protected SWFShape factorySWFShape(boolean hasAlpha,
                                   boolean hasStyle)
Description of the Method

Parameters:
hasAlpha - Description of the Parameter
hasStyle - Description of the Parameter
Returns:
Description of the Return Value

startTag

protected void startTag(int tagType,
                        boolean longTag)
Start a new tag context

Parameters:
tagType - Description of the Parameter
longTag - Description of the Parameter

startTag

protected void startTag(int tagType,
                        int id,
                        boolean longTag)
                 throws java.io.IOException
Start a new definition tag context

Parameters:
tagType - Description of the Parameter
id - Description of the Parameter
longTag - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

completeTag

protected void completeTag()
                    throws java.io.IOException
Finish the tag context and write the tag

Throws:
java.io.IOException - Description of the Exception

tag

public void tag(int tagType,
                boolean longTag,
                byte[] contents)
         throws java.io.IOException
SWFTags interface

Specified by:
tag in interface SWFTags
Parameters:
tagType - Description of the Parameter
longTag - Description of the Parameter
contents - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

header

public void header(int version,
                   long length,
                   int twipsWidth,
                   int twipsHeight,
                   int frameRate,
                   int frameCount)
            throws java.io.IOException
SWFHeader interface. Sets movie length to -1 to force a recalculation since the length cannot be guaranteed to be the same as the original.

Specified by:
header in interface SWFHeader
Parameters:
version - Description of the Parameter
length - Description of the Parameter
twipsWidth - Description of the Parameter
twipsHeight - Description of the Parameter
frameRate - Description of the Parameter
frameCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagEnd

public void tagEnd()
            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagEnd in interface SWFSpriteTagTypes
Throws:
java.io.IOException - Description of the Exception

tagShowFrame

public void tagShowFrame()
                  throws java.io.IOException
SWFTagTypes interface

Specified by:
tagShowFrame in interface SWFSpriteTagTypes
Throws:
java.io.IOException - Description of the Exception

tagDefineSound

public void tagDefineSound(int id,
                           int format,
                           int frequency,
                           boolean bits16,
                           boolean stereo,
                           int sampleCount,
                           byte[] soundData)
                    throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineSound in interface SWFTagTypes
Parameters:
id - Description of the Parameter
format - Description of the Parameter
frequency - Description of the Parameter
bits16 - Description of the Parameter
stereo - Description of the Parameter
sampleCount - Description of the Parameter
soundData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineButtonSound

public void tagDefineButtonSound(int buttonId,
                                 int rollOverSoundId,
                                 SoundInfo rollOverSoundInfo,
                                 int rollOutSoundId,
                                 SoundInfo rollOutSoundInfo,
                                 int pressSoundId,
                                 SoundInfo pressSoundInfo,
                                 int releaseSoundId,
                                 SoundInfo releaseSoundInfo)
                          throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineButtonSound in interface SWFTagTypes
Parameters:
buttonId - Description of the Parameter
rollOverSoundId - Description of the Parameter
rollOverSoundInfo - Description of the Parameter
rollOutSoundId - Description of the Parameter
rollOutSoundInfo - Description of the Parameter
pressSoundId - Description of the Parameter
pressSoundInfo - Description of the Parameter
releaseSoundId - Description of the Parameter
releaseSoundInfo - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagStartSound

public void tagStartSound(int soundId,
                          SoundInfo info)
                   throws java.io.IOException
SWFTagTypes interface

Specified by:
tagStartSound in interface SWFSpriteTagTypes
Parameters:
soundId - Description of the Parameter
info - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSoundStreamHead

public void tagSoundStreamHead(int playbackFrequency,
                               boolean playback16bit,
                               boolean playbackStereo,
                               int streamFormat,
                               int streamFrequency,
                               boolean stream16bit,
                               boolean streamStereo,
                               int averageSampleCount)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagSoundStreamHead in interface SWFSpriteTagTypes
Parameters:
playbackFrequency - Description of the Parameter
playback16bit - Description of the Parameter
playbackStereo - Description of the Parameter
streamFormat - Description of the Parameter
streamFrequency - Description of the Parameter
stream16bit - Description of the Parameter
streamStereo - Description of the Parameter
averageSampleCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSoundStreamHead2

public void tagSoundStreamHead2(int playbackFrequency,
                                boolean playback16bit,
                                boolean playbackStereo,
                                int streamFormat,
                                int streamFrequency,
                                boolean stream16bit,
                                boolean streamStereo,
                                int averageSampleCount)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagSoundStreamHead2 in interface SWFSpriteTagTypes
Parameters:
playbackFrequency - Description of the Parameter
playback16bit - Description of the Parameter
playbackStereo - Description of the Parameter
streamFormat - Description of the Parameter
streamFrequency - Description of the Parameter
stream16bit - Description of the Parameter
streamStereo - Description of the Parameter
averageSampleCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

writeSoundStreamHead

public void writeSoundStreamHead(int tag,
                                 int playbackFrequency,
                                 boolean playback16bits,
                                 boolean playbackStereo,
                                 int streamFormat,
                                 int streamFrequency,
                                 boolean stream16bits,
                                 boolean streamStereo,
                                 int averageSampleCount)
                          throws java.io.IOException
Description of the Method

Parameters:
tag - Description of the Parameter
playbackFrequency - Description of the Parameter
playback16bits - Description of the Parameter
playbackStereo - Description of the Parameter
streamFormat - Description of the Parameter
streamFrequency - Description of the Parameter
stream16bits - Description of the Parameter
streamStereo - Description of the Parameter
averageSampleCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSoundStreamBlock

public void tagSoundStreamBlock(byte[] soundData)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagSoundStreamBlock in interface SWFSpriteTagTypes
Parameters:
soundData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSerialNumber

public void tagSerialNumber(java.lang.String serialNumber)
                     throws java.io.IOException
SWFTagTypes interface

Specified by:
tagSerialNumber in interface SWFTagTypes
Parameters:
serialNumber - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGenerator

public void tagGenerator(byte[] data)
                  throws java.io.IOException
SWFTagTypes interface

Specified by:
tagGenerator in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGeneratorText

public void tagGeneratorText(byte[] data)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagGeneratorText in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGeneratorCommand

public void tagGeneratorCommand(byte[] data)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagGeneratorCommand in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagGeneratorFont

public void tagGeneratorFont(byte[] data)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagGeneratorFont in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagNameCharacter

public void tagNameCharacter(byte[] data)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagNameCharacter in interface SWFTagTypes
Parameters:
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBits

public void tagDefineBits(int id,
                          byte[] imageData)
                   throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBits in interface SWFTagTypes
Parameters:
id - Description of the Parameter
imageData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagJPEGTables

public void tagJPEGTables(byte[] jpegEncodingData)
                   throws java.io.IOException
SWFTagTypes interface

Specified by:
tagJPEGTables in interface SWFTagTypes
Parameters:
jpegEncodingData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsJPEG3

public void tagDefineBitsJPEG3(int id,
                               byte[] imageData,
                               byte[] alphaData)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsJPEG3 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
imageData - Description of the Parameter
alphaData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDoAction

public SWFActions tagDoAction()
                       throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDoAction in interface SWFSpriteTagTypes
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineShape

public SWFShape tagDefineShape(int id,
                               Rect outline)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineShape in interface SWFTagTypes
Parameters:
id - Description of the Parameter
outline - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineShape2

public SWFShape tagDefineShape2(int id,
                                Rect outline)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineShape2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
outline - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineShape3

public SWFShape tagDefineShape3(int id,
                                Rect outline)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineShape3 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
outline - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagFreeCharacter

public void tagFreeCharacter(int charId)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagFreeCharacter in interface SWFSpriteTagTypes
Parameters:
charId - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagPlaceObject

public void tagPlaceObject(int charId,
                           int depth,
                           Matrix matrix,
                           AlphaTransform cxform)
                    throws java.io.IOException
SWFTagTypes interface

Specified by:
tagPlaceObject in interface SWFSpriteTagTypes
Parameters:
charId - Description of the Parameter
depth - Description of the Parameter
matrix - Description of the Parameter
cxform - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagPlaceObject2

public SWFActions tagPlaceObject2(boolean isMove,
                                  int clipDepth,
                                  int depth,
                                  int charId,
                                  Matrix matrix,
                                  AlphaTransform cxform,
                                  int ratio,
                                  java.lang.String name,
                                  int clipActionFlags)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagPlaceObject2 in interface SWFSpriteTagTypes
Parameters:
isMove - Description of the Parameter
clipDepth - Description of the Parameter
depth - Description of the Parameter
charId - Description of the Parameter
matrix - Description of the Parameter
cxform - Description of the Parameter
ratio - Description of the Parameter
name - Description of the Parameter
clipActionFlags - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagRemoveObject

public void tagRemoveObject(int charId,
                            int depth)
                     throws java.io.IOException
SWFTagTypes interface

Specified by:
tagRemoveObject in interface SWFSpriteTagTypes
Parameters:
charId - Description of the Parameter
depth - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagRemoveObject2

public void tagRemoveObject2(int depth)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagRemoveObject2 in interface SWFSpriteTagTypes
Parameters:
depth - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagSetBackgroundColor

public void tagSetBackgroundColor(Color color)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagSetBackgroundColor in interface SWFTagTypes
Parameters:
color - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagFrameLabel

public void tagFrameLabel(java.lang.String label)
                   throws java.io.IOException
SWFTagTypes interface

Specified by:
tagFrameLabel in interface SWFSpriteTagTypes
Parameters:
label - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineSprite

public SWFTagTypes tagDefineSprite(int id)
                            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineSprite in interface SWFTagTypes
Parameters:
id - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagProtect

public void tagProtect(byte[] password)
                throws java.io.IOException
SWFTagTypes interface

Specified by:
tagProtect in interface SWFTagTypes
Parameters:
password - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagEnableDebug

public void tagEnableDebug(byte[] password)
                    throws java.io.IOException
SWFTagTypes interface

Specified by:
tagEnableDebug in interface SWFTagTypes
Parameters:
password - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineFont

public SWFVectors tagDefineFont(int id,
                                int numGlyphs)
                         throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineFont in interface SWFTagTypes
Parameters:
id - Description of the Parameter
numGlyphs - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineFontInfo

public void tagDefineFontInfo(int fontId,
                              java.lang.String fontName,
                              int flags,
                              int[] codes)
                       throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineFontInfo in interface SWFTagTypes
Parameters:
fontId - Description of the Parameter
fontName - Description of the Parameter
flags - Description of the Parameter
codes - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineFont2

public SWFVectors tagDefineFont2(int id,
                                 int flags,
                                 java.lang.String name,
                                 int numGlyphs,
                                 int ascent,
                                 int descent,
                                 int leading,
                                 int[] codes,
                                 int[] advances,
                                 Rect[] bounds,
                                 int[] kernCodes1,
                                 int[] kernCodes2,
                                 int[] kernAdjustments)
                          throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineFont2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
flags - Description of the Parameter
name - Description of the Parameter
numGlyphs - Description of the Parameter
ascent - Description of the Parameter
descent - Description of the Parameter
leading - Description of the Parameter
codes - Description of the Parameter
advances - Description of the Parameter
bounds - Description of the Parameter
kernCodes1 - Description of the Parameter
kernCodes2 - Description of the Parameter
kernAdjustments - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineTextField

public void tagDefineTextField(int fieldId,
                               java.lang.String fieldName,
                               java.lang.String initialText,
                               Rect boundary,
                               int flags2,
                               AlphaColor textColor,
                               int alignment,
                               int fontId,
                               int fontSize,
                               int charLimit,
                               int leftMargin,
                               int rightMargin,
                               int indentation,
                               int lineSpacing)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineTextField in interface SWFTagTypes
Parameters:
fieldId - Description of the Parameter
fieldName - Description of the Parameter
initialText - Description of the Parameter
boundary - Description of the Parameter
flags - Description of the Parameter
textColor - Description of the Parameter
alignment - Description of the Parameter
fontId - Description of the Parameter
fontSize - Description of the Parameter
charLimit - Description of the Parameter
leftMargin - Description of the Parameter
rightMargin - Description of the Parameter
indentation - Description of the Parameter
lineSpacing - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineText

public SWFText tagDefineText(int id,
                             Rect bounds,
                             Matrix matrix)
                      throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineText in interface SWFTagTypes
Parameters:
id - Description of the Parameter
bounds - Description of the Parameter
matrix - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineText2

public SWFText tagDefineText2(int id,
                              Rect bounds,
                              Matrix matrix)
                       throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineText2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
bounds - Description of the Parameter
matrix - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

tagDefineButton

public SWFActions tagDefineButton(int id,
                                  java.util.List buttonRecords)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineButton in interface SWFTagTypes
Parameters:
id - Description of the Parameter
buttonRecords - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception
See Also:
com.anotherbigidea.flash.structs.ButtonRecord

tagButtonCXForm

public void tagButtonCXForm(int buttonId,
                            ColorTransform transform)
                     throws java.io.IOException
SWFTagTypes interface

Specified by:
tagButtonCXForm in interface SWFTagTypes
Parameters:
buttonId - Description of the Parameter
transform - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineButton2

public SWFActions tagDefineButton2(int id,
                                   boolean trackAsMenu,
                                   java.util.List buttonRecord2s)
                            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineButton2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
trackAsMenu - Description of the Parameter
buttonRecord2s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception
See Also:
com.anotherbigidea.flash.structs.ButtonRecord2

tagExport

public void tagExport(java.lang.String[] names,
                      int[] ids)
               throws java.io.IOException
SWFTagTypes interface

Specified by:
tagExport in interface SWFTagTypes
Parameters:
names - Description of the Parameter
ids - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagImport

public void tagImport(java.lang.String movieName,
                      java.lang.String[] names,
                      int[] ids)
               throws java.io.IOException
SWFTagTypes interface

Specified by:
tagImport in interface SWFTagTypes
Parameters:
movieName - Description of the Parameter
names - Description of the Parameter
ids - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineQuickTimeMovie

public void tagDefineQuickTimeMovie(int id,
                                    java.lang.String filename)
                             throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineQuickTimeMovie in interface SWFTagTypes
Parameters:
id - Description of the Parameter
filename - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsJPEG2

public void tagDefineBitsJPEG2(int id,
                               byte[] data)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsJPEG2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
data - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsLossless

public void tagDefineBitsLossless(int id,
                                  int format,
                                  int width,
                                  int height,
                                  Color[] colors,
                                  byte[] imageData)
                           throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsLossless in interface SWFTagTypes
Parameters:
id - Description of the Parameter
format - Description of the Parameter
width - Description of the Parameter
height - Description of the Parameter
colors - Description of the Parameter
imageData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsLossless2

public void tagDefineBitsLossless2(int id,
                                   int format,
                                   int width,
                                   int height,
                                   Color[] colors,
                                   byte[] imageData)
                            throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsLossless2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
format - Description of the Parameter
width - Description of the Parameter
height - Description of the Parameter
colors - Description of the Parameter
imageData - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

writeBitsLossless

public void writeBitsLossless(int id,
                              int format,
                              int width,
                              int height,
                              Color[] colors,
                              byte[] imageData,
                              boolean hasAlpha)
                       throws java.io.IOException
Description of the Method

Parameters:
id - Description of the Parameter
format - Description of the Parameter
width - Description of the Parameter
height - Description of the Parameter
colors - Description of the Parameter
imageData - Description of the Parameter
hasAlpha - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineBitsJPEG2

public void tagDefineBitsJPEG2(int id,
                               java.io.InputStream jpegImage)
                        throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineBitsJPEG2 in interface SWFTagTypes
Parameters:
id - Description of the Parameter
jpegImage - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tagDefineMorphShape

public SWFShape tagDefineMorphShape(int id,
                                    Rect startBounds,
                                    Rect endBounds)
                             throws java.io.IOException
SWFTagTypes interface

Specified by:
tagDefineMorphShape in interface SWFTagTypes
Parameters:
id - Description of the Parameter
startBounds - Description of the Parameter
endBounds - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

defineText

protected SWFText defineText(Rect bounds,
                             Matrix matrix,
                             boolean hasAlpha)
                      throws java.io.IOException
Description of the Method

Parameters:
bounds - Description of the Parameter
matrix - Description of the Parameter
hasAlpha - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

startShape

protected void startShape(int tagType,
                          int id,
                          Rect outline)
                   throws java.io.IOException
Description of the Method

Parameters:
tagType - Description of the Parameter
id - Description of the Parameter
outline - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception